mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-09 06:52:05 +08:00
This reverts commit 1ca1cf3922.
This commit is contained in:
+1
-1
Submodule panda updated: 7e2b312fa8...bb75afc84e
@@ -23,7 +23,6 @@ from openpilot.tools.lib.logreader import LogReader
|
||||
from openpilot.tools.lib.route import Route, SegmentName, RouteName
|
||||
|
||||
from panda.tests.libpanda import libpanda_py
|
||||
from panda.tests.safety.common import VEHICLE_SPEED_FACTOR
|
||||
|
||||
EventName = car.CarEvent.EventName
|
||||
PandaType = log.PandaState.PandaType
|
||||
@@ -346,11 +345,6 @@ class TestCarModelBase(unittest.TestCase):
|
||||
checks['brakePressed'] += brake_pressed != self.safety.get_brake_pressed_prev()
|
||||
checks['regenBraking'] += CS.regenBraking != self.safety.get_regen_braking_prev()
|
||||
|
||||
# Verify that panda has the correct velocity for cars that use it (angle based cars)
|
||||
if self.CP.steerControlType in [car.CarParams.SteerControlType.angle] and not self.CP.notCar:
|
||||
panda_velocity = self.safety.get_vehicle_speed_last() / VEHICLE_SPEED_FACTOR
|
||||
checks['vEgo'] += abs(panda_velocity - CS.vEgoRaw) > 0.2
|
||||
|
||||
if self.CP.pcmCruise:
|
||||
# On most pcmCruise cars, openpilot's state is always tied to the PCM's cruise state.
|
||||
# On Honda Nidec, we always engage on the rising edge of the PCM cruise state, but
|
||||
|
||||
Reference in New Issue
Block a user