|
|
@ -78,6 +78,8 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
int status = 0; //agv状态
|
|
|
|
int agv_status = 0; //车辆动作状态
|
|
|
|
int is_have = 0; //是否有货
|
|
|
|
int direction = 0;// agv行走方向
|
|
|
|
int distance = 0;// agv路线剩余距离
|
|
|
|
int error = 0; //车辆故障
|
|
|
|
|
|
|
|
int last_x = 0; |
|
|
@ -708,6 +710,10 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
status = ikey; |
|
|
|
} else if (phase == 0x75) { |
|
|
|
is_have = ikey; |
|
|
|
} else if (phase == 0x76) { |
|
|
|
direction = ikey; |
|
|
|
} else if (phase == 0x77) { |
|
|
|
distance = ikey; |
|
|
|
} |
|
|
|
if (!ObjectUtil.isEmpty(data)) { |
|
|
|
logServer.deviceExecuteLog(this.device_code, "", "", "agvphase:" + phase + "反馈:" + data); |
|
|
|