Add note around excessive actuation check (#36010)

* Add note around excessive actuation check

* Update selfdrived.py
pull/35854/merge
Adeeb Shihadeh 3 days ago committed by GitHub
parent ceb557058c
commit 63fa250f29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      selfdrive/selfdrived/selfdrived.py

@ -238,7 +238,10 @@ class SelfdriveD:
if self.sm['driverAssistance'].leftLaneDeparture or self.sm['driverAssistance'].rightLaneDeparture: if self.sm['driverAssistance'].leftLaneDeparture or self.sm['driverAssistance'].rightLaneDeparture:
self.events.add(EventName.ldw) self.events.add(EventName.ldw)
# Check for excessive actuation # ******************************************************************************************
# NOTE: To fork maintainers.
# Disabling or nerfing safety features will get you and your users banned from our servers.
# We recommend that you do not change these numbers from the defaults.
if self.sm.updated['liveCalibration']: if self.sm.updated['liveCalibration']:
self.pose_calibrator.feed_live_calib(self.sm['liveCalibration']) self.pose_calibrator.feed_live_calib(self.sm['liveCalibration'])
if self.sm.updated['livePose']: if self.sm.updated['livePose']:
@ -253,6 +256,7 @@ class SelfdriveD:
if self.excessive_actuation: if self.excessive_actuation:
self.events.add(EventName.excessiveActuation) self.events.add(EventName.excessiveActuation)
# ******************************************************************************************
# Handle lane change # Handle lane change
if self.sm['modelV2'].meta.laneChangeState == LaneChangeState.preLaneChange: if self.sm['modelV2'].meta.laneChangeState == LaneChangeState.preLaneChange:

Loading…
Cancel
Save