# between nav1 and nav_tc g.nextdecisionpoint = 0 g.acc = 0 # nav_tc g.tctime = None g.otherpos = dict() g.posnow = dict() wm.wminit() nav1.nav1init() if not g.simulate: nav_imu.imuinit() if not g.simulate: nav_mqtt.mqttinit() else: nav_mqtt.mqttinit() nav_tc.tcinit() driving.drivinginit() nav_signal.signalinit() def connect_to_ecm(): stopped = False s = nav_comm.open_socket2() ecmt0 = time.time()
# set my nav_mqtt g.battery = 0.0 g.ultra = 0.0 g.signalling = False g.ledcmd = None # between nav1 and nav_tc g.nextdecisionpoint = 0 wm.wminit() nav1.nav1init() if not g.simulate: nav_imu.imuinit() nav_mqtt.mqttinit() nav_tc.tcinit() driving.drivinginit() nav_signal.signalinit() def connect_to_ecm(): stopped = False s = nav_comm.open_socket2() ecmt0 = time.time() counter = 0 g.crashacc = None