mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 09:13:46 +08:00
selfdrived: excessive actuation check is not for notCars (#38634)
This commit is contained in:
@@ -297,7 +297,7 @@ class SelfdriveD:
|
||||
device_motion = Pose.from_device_motion(self.sm['deviceMotion'])
|
||||
self.calibrated_pose = self.pose_calibrator.build_calibrated_pose(device_motion)
|
||||
|
||||
if self.calibrated_pose is not None:
|
||||
if self.calibrated_pose is not None and not self.CP.notCar:
|
||||
excessive_actuation = self.excessive_actuation_check.update(self.sm, CS, self.calibrated_pose)
|
||||
if not self.excessive_actuation and excessive_actuation is not None:
|
||||
set_offroad_alert("Offroad_ExcessiveActuation", True, extra_text=str(excessive_actuation))
|
||||
|
||||
Reference in New Issue
Block a user