This commit is contained in:
Your Name
2024-05-18 02:58:28 -05:00
parent 69165b456a
commit 691036b9b9
3 changed files with 13 additions and 7 deletions

View File

@@ -1238,7 +1238,7 @@ class Controls:
def clearpilot_state_control(self, CC, CS):
if any(be.pressed and be.type == FrogPilotButtonType.lkas for be in CS.buttonEvents):
# CC.cruiseControl.resume = True
CC.cruiseControl.cancel = True
self.params_memory.put_bool("CPTLkasButtonAction", True)
self.params_memory.put_int("SpeedLimitLatDesired", CC.actuators.speed * CV.MS_TO_MPH )
# CC.actuators.speed
# print ("Alive")