mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-15 03:53:43 +08:00
No actuation while in pre-enabled state (#23658)
* No actuation while in pre-enabled state * update refs
This commit is contained in:
@@ -19,7 +19,7 @@ class CarController():
|
||||
apply_steer = 0
|
||||
self.steer_rate_limited = False
|
||||
|
||||
if c.enabled:
|
||||
if c.active:
|
||||
# calculate steer and also set limits due to driver torque
|
||||
new_steer = int(round(c.actuators.steer * CarControllerParams.STEER_MAX))
|
||||
apply_steer = apply_std_steer_torque_limits(new_steer, self.apply_steer_last,
|
||||
|
||||
Reference in New Issue
Block a user