mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
@@ -32,7 +32,7 @@ class SimulatorBridge(ABC):
|
||||
set_params_enabled()
|
||||
self.params = Params()
|
||||
|
||||
self.rk = Ratekeeper(100)
|
||||
self.rk = Ratekeeper(100, None)
|
||||
|
||||
msg = messaging.new_message('liveCalibration')
|
||||
msg.liveCalibration.validBlocks = 20
|
||||
@@ -90,8 +90,6 @@ class SimulatorBridge(ABC):
|
||||
100, self._exit_event))
|
||||
self.simulated_car_thread.start()
|
||||
|
||||
rk = Ratekeeper(100, print_delay_threshold=None)
|
||||
|
||||
# Simulation tends to be slow in the initial steps. This prevents lagging later
|
||||
for _ in range(20):
|
||||
self.world.tick()
|
||||
@@ -162,4 +160,4 @@ class SimulatorBridge(ABC):
|
||||
|
||||
self.started = True
|
||||
|
||||
rk.keep_time()
|
||||
self.rk.keep_time()
|
||||
|
||||
Reference in New Issue
Block a user