mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-17 19:02:06 +08:00
Fixed NO_IR_CTRL issue
This commit is contained in:
@@ -778,10 +778,7 @@ class Controls:
|
||||
else:
|
||||
self.steer_limited = abs(CC.actuators.steer - CC.actuatorsOutput.steer) > 1e-2
|
||||
|
||||
if NO_IR_CTRL:
|
||||
self.sm['driverMonitoringState'].awarenessStatus = 1.
|
||||
|
||||
force_decel = (self.sm['driverMonitoringState'].awarenessStatus < 0.) or \
|
||||
force_decel = (not NO_IR_CTRL and self.sm['driverMonitoringState'].awarenessStatus < 0.) or \
|
||||
(self.state == State.softDisabling)
|
||||
|
||||
# Curvature & Steering angle
|
||||
|
||||
Reference in New Issue
Block a user