为数据库插入增加保护
This commit is contained in:
@@ -1765,11 +1765,11 @@ class PowerManagerApp:
|
||||
self.simulation_LowBusFbMsg.emergencyLithiumBatteryGroup1CircuitBreaker = self.simulation_LVBCmdMsg.emergencyLithiumBatteryGroup1CircuitBreaker
|
||||
|
||||
self.send_udp_command(self.simulation_HighVolBusFbMsg.pack(), self.udp_ip, self.udp_port)
|
||||
time.sleep(0.01)
|
||||
time.sleep(1)
|
||||
self.send_udp_command(self.simulation_HighAVolBusFbMsg.pack(), self.udp_ip, self.udp_port)
|
||||
time.sleep(0.01)
|
||||
time.sleep(1)
|
||||
self.send_udp_command(self.simulation_LowBusFbMsg.pack(), self.udp_ip, self.udp_port)
|
||||
time.sleep(0.01)
|
||||
time.sleep(1)
|
||||
self.send_udp_command(self.simulation_LowMainBusFbMsg.pack(), self.udp_ip, self.udp_port)
|
||||
time.sleep(1) # 1秒间隔
|
||||
|
||||
|
||||
Reference in New Issue
Block a user