8 changed files with 46 additions and 151 deletions
-
4src/main/java/a8k/appbean/cfg/BottleGroupsPosInfo.java
-
12src/main/java/a8k/appbean/cfg/BottlesPosInfo.java
-
12src/main/java/a8k/appbean/cfg/LargeBottleBufferPos.java
-
2src/main/java/a8k/appbean/cfg/Plates2dCodeScanPos.java
-
115src/main/java/a8k/appbean/cfg/SmallBottleBufferPos.java
-
2src/main/java/a8k/canbus/protocol/A8kPacket.java
-
41src/main/java/a8k/service/hardware/HbotControlService.java
-
9src/main/java/a8k/utils/HbotScanerPosComputer.java
@ -1,115 +0,0 @@ |
|||||
package a8k.appbean.cfg; |
|
||||
|
|
||||
public class SmallBottleBufferPos { |
|
||||
|
|
||||
public Pos2d topLelf0;//小孔topf |
|
||||
public Pos2d topLelf1;//大孔topf |
|
||||
|
|
||||
public Integer xSpacing0; //小孔,x间隔 |
|
||||
public Integer ySpacing0; //小孔,y间隔 |
|
||||
|
|
||||
public Integer xSpacing1; //大孔,x间隔 |
|
||||
public Integer ySpacing1; //大孔,y间隔 |
|
||||
|
|
||||
public Integer groupXSpacing; //x间隔 |
|
||||
public Integer groupYSpacing; //y间隔 |
|
||||
|
|
||||
public Integer sampleZPos; //取样开始位置 |
|
||||
public Integer sampleZDepth; //取样深度 |
|
||||
|
|
||||
public Pos2d scanRelaPos;//扫码相对配置 |
|
||||
|
|
||||
public Integer piercedZPos; //刺破高度 |
|
||||
public Integer smallBottleBufDistributeZPos; //小瓶缓冲液吐液高度 |
|
||||
public Integer detectMaterialDistributeZpos; //探测物质吐液高度 |
|
||||
|
|
||||
public Integer cgetMAX_COL() {return 5;} |
|
||||
|
|
||||
public Integer cgetMAX_ROW() {return 5;} |
|
||||
|
|
||||
public Integer cgetBottomNum() {return 5 * 5;} |
|
||||
|
|
||||
// |
|
||||
// public SmallBottleBufferPos() { |
|
||||
// g0TopLelf = new Pos2d(0, 0); |
|
||||
// g1TopLelf = new Pos2d(0, 0); |
|
||||
// g2TopLelf = new Pos2d(0, 0); |
|
||||
// g3TopLelf = new Pos2d(0, 0); |
|
||||
// g4TopLelf = new Pos2d(0, 0); |
|
||||
// g5TopLelf = new Pos2d(0, 0); |
|
||||
// xSpacing = 0; |
|
||||
// ySpacing = 0; |
|
||||
// sampleZPos = 0; |
|
||||
// sampleZDepth = 0; |
|
||||
// scanRelaPos = new Pos2d(0, 0); |
|
||||
// piercedZPos = 0; |
|
||||
// smallBottleBufDistributeZPos = 0; |
|
||||
// detectMaterialDistributeZpos = 0; |
|
||||
// } |
|
||||
// |
|
||||
// public SmallBottleBufferPos(Pos2d g0TopLelf, |
|
||||
// Pos2d g1TopLelf, |
|
||||
// Pos2d g2TopLelf, |
|
||||
// Pos2d g3TopLelf, |
|
||||
// Pos2d g4TopLelf, |
|
||||
// Pos2d g5TopLelf, |
|
||||
// Integer xSpacing, |
|
||||
// Integer ySpacing, |
|
||||
// Integer sampleZPos, |
|
||||
// Integer sampleZDepth, |
|
||||
// Pos2d scanRelaPos, |
|
||||
// Integer piercedZPos, |
|
||||
// Integer smallBottleBufDistributeZPos, |
|
||||
// Integer detectMaterialDistributeZpos) { |
|
||||
// |
|
||||
// this.g0TopLelf = g0TopLelf; |
|
||||
// this.g1TopLelf = g1TopLelf; |
|
||||
// this.g2TopLelf = g2TopLelf; |
|
||||
// this.g3TopLelf = g3TopLelf; |
|
||||
// this.g4TopLelf = g4TopLelf; |
|
||||
// this.g5TopLelf = g5TopLelf; |
|
||||
// this.xSpacing = xSpacing; |
|
||||
// this.ySpacing = ySpacing; |
|
||||
// this.sampleZPos = sampleZPos; |
|
||||
// this.sampleZDepth = sampleZDepth; |
|
||||
// this.scanRelaPos = scanRelaPos; |
|
||||
// this.piercedZPos = piercedZPos; |
|
||||
// this.smallBottleBufDistributeZPos = smallBottleBufDistributeZPos; |
|
||||
// this.detectMaterialDistributeZpos = detectMaterialDistributeZpos; |
|
||||
// } |
|
||||
// |
|
||||
// Pos2d cgetTopLelf(Integer group) { |
|
||||
// return switch (group) { |
|
||||
// case 0 -> g0TopLelf; |
|
||||
// case 1 -> g1TopLelf; |
|
||||
// case 2 -> g2TopLelf; |
|
||||
// case 3 -> g3TopLelf; |
|
||||
// case 4 -> g4TopLelf; |
|
||||
// case 5 -> g5TopLelf; |
|
||||
// default -> null; |
|
||||
// }; |
|
||||
// } |
|
||||
// |
|
||||
// public Pos2d cgetScanPos(Integer group) { |
|
||||
// Pos2d topLelf = cgetTopLelf(group); |
|
||||
// if (topLelf == null) { |
|
||||
// return null; |
|
||||
// } |
|
||||
// return new Pos2d(topLelf.x + scanRelaPos.x, topLelf.y + scanRelaPos.y); |
|
||||
// } |
|
||||
// |
|
||||
// Pos2d cgetBottlePos(Integer group, Integer bottleIndex) { |
|
||||
// Pos2d topLelf = cgetTopLelf(group); |
|
||||
// assert topLelf != null; |
|
||||
// int col = bottleIndex % 5; |
|
||||
// int row = bottleIndex / 5; |
|
||||
// return new Pos2d(topLelf.x + col * xSpacing, topLelf.y + row * ySpacing); |
|
||||
// } |
|
||||
// |
|
||||
// Pos3d cgetBottlePiercedPos(Integer group, Integer bottleIndex) { |
|
||||
// Pos2d bottlePos = cgetBottlePos(group, bottleIndex); |
|
||||
// return new Pos3d(bottlePos.x, bottlePos.y, piercedZPos); |
|
||||
// } |
|
||||
// |
|
||||
|
|
||||
} |
|
@ -0,0 +1,9 @@ |
|||||
|
package a8k.utils; |
||||
|
|
||||
|
import a8k.appbean.cfg.Pos2d; |
||||
|
|
||||
|
public class HbotScanerPosComputer { |
||||
|
static public Pos2d getScanPos(Pos2d tipPos) { |
||||
|
return new Pos2d(tipPos.x + 359, tipPos.y + 29); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue