This commit is contained in:
firestar5683
2026-04-12 23:10:53 -05:00
parent 7d7d39faca
commit b7ccc9116e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -10,6 +10,7 @@ from msgq.visionipc import VisionIpcClient, VisionStreamType
from opendbc.car.gm.values import GMFlags
from opendbc.safety import ALTERNATIVE_EXPERIENCE
from openpilot.common.params import Params
from openpilot.common.realtime import config_realtime_process, Priority, Ratekeeper, DT_CTRL
@@ -165,7 +166,8 @@ class SelfdriveD:
self.starpilot_events_prev = []
self.has_menu = self.CP.brand == "gm" and not (self.CP.flags & GMFlags.NO_CAMERA.value)
remap_cancel_to_distance = bool(self.CP.alternativeExperience & ALTERNATIVE_EXPERIENCE.GM_REMAP_CANCEL_TO_DISTANCE)
self.has_menu = self.CP.brand == "gm" and not (self.CP.flags & GMFlags.NO_CAMERA.value) and not remap_cancel_to_distance
self.FPCP = messaging.log_from_bytes(self.params.get("StarPilotCarParams", block=True), custom.StarPilotCarParams)
+1 -1
View File
@@ -34,7 +34,7 @@ class StarPilotCard:
self.always_on_lateral_set = bool(FPCP.alternativeExperience & ALTERNATIVE_EXPERIENCE.ALWAYS_ON_LATERAL)
self.frogs_go_moo = is_FrogsGoMoo()
self.long_press_threshold = CRUISE_LONG_PRESS * (1.5 if self.CP.brand == "gm" else 1)
self.long_press_threshold = CRUISE_LONG_PRESS
self.very_long_press_threshold = CRUISE_LONG_PRESS * 5
self.error_log = ERROR_LOGS_PATH / "error.txt"