| | |
| | | vo.setCurrentOrBeforeCode(shuttleProtocol.getCurrentOrBeforeCode());//当前或者之前读到的二维码值 |
| | | vo.setCodeOffsetX(shuttleProtocol.getCodeOffsetX());//读到的二维码X方向偏移量 |
| | | vo.setCodeOffsetY(shuttleProtocol.getCodeOffsetY());//读到的二维码Y方向偏移量 |
| | | vo.setCurrentVoltage(shuttleProtocol.getCurrentVoltage());//当前的电压值 |
| | | vo.setCurrentVoltage(shuttleProtocol.getCurrentVoltage() * 0.1);//当前的电压值 |
| | | vo.setCurrentAnalogValue(shuttleProtocol.getCurrentAnalogValue());//当前的模拟量值 |
| | | vo.setCurrentLiftServoSpeed(shuttleProtocol.getCurrentLiftServoSpeed());//当前的升降伺服速度 |
| | | vo.setCurrentMoveServoSpeed(shuttleProtocol.getCurrentMoveServoSpeed());//当前的行走伺服速度 |
| | |
| | | /** |
| | | * 当前的电压值 |
| | | */ |
| | | private Short currentVoltage; |
| | | private Double currentVoltage; |
| | | |
| | | /** |
| | | * 当前的模拟量值 |
| | |
| | | |
| | | } else if (wrkCharge.getWrkSts() == 56) { |
| | | //充电中 |
| | | //判断小车是否充满电量 |
| | | if (shuttleProtocol.getBatteryPower() == 1000) { |
| | | //判断小车是否充满电量,满电1000或电压54V以上 |
| | | if (shuttleProtocol.getBatteryPower() >= 1000 || shuttleProtocol.getCurrentVoltage() >= 540) { |
| | | //充满,断开充电 |
| | | List<ShuttleCommand> commands = new ArrayList<>(); |
| | | ShuttleAssignCommand assignCommand = new ShuttleAssignCommand(); |
| | |
| | | if (!res) { |
| | | return res; |
| | | } else { |
| | | // 电量 |
| | | // 电量小于阈值或电压小于48V,需要进行充电 |
| | | try { |
| | | Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); |
| | | return this.getBatteryPower$() < chargeLine; |
| | | return this.getBatteryPower$() < chargeLine || this.currentVoltage < 480; |
| | | } catch (Exception e) { |
| | | News.error("fail", e); |
| | | return false; |
| | |
| | | setVal(tr.children("td").eq(13), table[i-1].currentOrBeforeCode); |
| | | setVal(tr.children("td").eq(14), table[i-1].codeOffsetX); |
| | | setVal(tr.children("td").eq(15), table[i-1].codeOffsetY); |
| | | setVal(tr.children("td").eq(16), table[i-1].currentVoltage); |
| | | setVal(tr.children("td").eq(16), table[i-1].currentVoltage ? table[i-1].currentVoltage + "V" : ""); |
| | | setVal(tr.children("td").eq(17), table[i-1].currentAnalogValue); |
| | | } |
| | | } else if (res.code === 403){ |