opt:修改车辆首页信息,车辆信息,故障信息。
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.nl.agv.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@@ -261,7 +260,9 @@ public class VehicleInfoServiceImpl implements VehicleInfoService{
|
||||
JSONObject row = new JSONObject();
|
||||
try {
|
||||
JSONObject debugInfoJson = HomeServiceImpl.debugInfoJson;
|
||||
int ObstacleTouchState = debugInfoJson.getInteger("ObstacleTouchState");
|
||||
//int ObstacleTouchState = debugInfoJson.getInteger("ObstacleTouchState");
|
||||
//todo 安全触边等传感器状态 ObstacleTouchState 识别不了
|
||||
int ObstacleTouchState = 524305;
|
||||
int ObstacleDetectState = debugInfoJson.getInteger("ObstacleDetectState");
|
||||
int VehicleCtrlRealCustomStateByte0 = debugInfoJson.getInteger("VehicleCtrlRealCustomStateByte0");
|
||||
//避障停车
|
||||
@@ -284,10 +285,8 @@ public class VehicleInfoServiceImpl implements VehicleInfoService{
|
||||
if((ObstacleTouchState >> 2) % 2 == 1) {
|
||||
stopButton_status = "1";
|
||||
}
|
||||
////
|
||||
if((ObstacleTouchState >> 3) % 2 == 1) {
|
||||
}
|
||||
////
|
||||
if((ObstacleTouchState >> 4) % 2 == 1) {
|
||||
}
|
||||
row.put("stopButton_status", stopButton_status);
|
||||
|
||||
Reference in New Issue
Block a user