Simulator: cleanup old common stuff (#30069)

cleanup
pull/30073/head
Justin Newberry 2 years ago committed by GitHub
parent a4aa801fbe
commit f18d66fa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      tools/sim/bridge/common.py

@ -6,8 +6,6 @@ from multiprocessing import Process, Queue
from abc import ABC, abstractmethod
from typing import Optional
import cereal.messaging as messaging
from openpilot.common.params import Params
from openpilot.common.numpy_fast import clip
from openpilot.common.realtime import Ratekeeper
@ -34,11 +32,6 @@ class SimulatorBridge(ABC):
self.rk = Ratekeeper(100, None)
msg = messaging.new_message('liveCalibration')
msg.liveCalibration.validBlocks = 20
msg.liveCalibration.rpyCalib = [0.0, 0.0, 0.0]
self.params.put("CalibrationParams", msg.to_bytes())
self.dual_camera = arguments.dual_camera
self.high_quality = arguments.high_quality
@ -94,8 +87,6 @@ class SimulatorBridge(ABC):
for _ in range(20):
self.world.tick()
throttle_manual = steer_manual = brake_manual = 0.
while self._keep_alive:
throttle_out = steer_out = brake_out = 0.0
throttle_op = steer_op = brake_op = 0.0

Loading…
Cancel
Save