mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 00:12:05 +08:00
longActive: consider longitudinal control (#24295)
* consider longitudinal control * update refs
This commit is contained in:
@@ -538,7 +538,7 @@ class Controls:
|
||||
# Check which actuators can be enabled
|
||||
CC.latActive = self.active and not CS.steerFaultTemporary and not CS.steerFaultPermanent and \
|
||||
CS.vEgo > self.CP.minSteerSpeed and not CS.standstill
|
||||
CC.longActive = self.active and not self.events.any(ET.OVERRIDE)
|
||||
CC.longActive = self.active and not self.events.any(ET.OVERRIDE) and self.CP.openpilotLongitudinalControl
|
||||
|
||||
actuators = CC.actuators
|
||||
actuators.longControlState = self.LoC.long_control_state
|
||||
|
||||
@@ -1 +1 @@
|
||||
37aac3b4090fcc2f5a0e52c0eb4913706688d3fd
|
||||
fe7b24c1914046a3a7be19b6e812984e7e14301d
|
||||
Reference in New Issue
Block a user