| | |
| | | } |
| | | } |
| | | |
| | | //***************判断是否满充校准*************** |
| | | Config shuttleMaxPowerVerifyConfig = configService.selectOne(new EntityWrapper<Config>() |
| | | .eq("code", "shuttleMaxPowerVerify") |
| | | .eq("status", 1)); |
| | | if (shuttleMaxPowerVerifyConfig != null) { |
| | | if (shuttleMaxPowerVerifyConfig.getValue().equals("true")) { |
| | | if (this.shuttleProtocol.getBatteryVoltage() < 5630) { |
| | | return false;//电压不够继续充电 |
| | | } |
| | | } |
| | | } |
| | | //***************判断是否满充校准*************** |
| | | |
| | | if (this.shuttleProtocol.getHasCharge() == null) { |
| | | return false; |
| | | } |
| | |
| | | writer.flush(); |
| | | // System.out.println("Sent message to server: " + JSON.toJSONString(httpCommand)); |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | | // e.printStackTrace(); |
| | | System.out.println("socket write error"); |
| | | } |
| | | } |
| | | |