mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
Simulator: cleanup old common stuff (#30069)
cleanup old-commit-hash: f18d66fa3ef8c979e79395758672a5bf1d38575c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user