mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 05:12:11 +08:00
long press
This commit is contained in:
@@ -348,7 +348,8 @@ class CarInterfaceBase(ABC):
|
||||
|
||||
# FrogPilot variables
|
||||
fp_ret.alwaysOnLateralAllowed = self.always_on_lateral_allowed
|
||||
fp_ret.distancePressed = bool(self.CS.distance_button)
|
||||
# Preserve any car-interface override (e.g. remapped buttons) and include native distance state.
|
||||
fp_ret.distancePressed = bool(fp_ret.distancePressed or self.CS.distance_button)
|
||||
fp_ret.ecoGear |= ret.gearShifter == GearShifter.eco
|
||||
fp_ret.sportGear |= ret.gearShifter == GearShifter.sport
|
||||
|
||||
|
||||
Reference in New Issue
Block a user