Use "single_pedal_mode" with regen

Co-Authored-By: garrettpall <76917194+garrettpall@users.noreply.github.com>
This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent 8dd23a7aa2
commit 562e79f348
+3
View File
@@ -186,6 +186,9 @@ class CarState(CarStateBase):
# FrogPilot variables
fp_ret = custom.FrogPilotCarState.new_message()
if self.CP.transmissionType == TransmissionType.direct:
self.single_pedal_mode |= ret.regenBraking and ret.gearShifter == GearShifter.manumatic
return ret, fp_ret
@staticmethod