From 8f010a4c3fe9630a26168858acb2679405da7391 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 3 Oct 2025 00:08:48 -0500 Subject: [PATCH] Kao Panda --- panda/board/safety/safety_gm.h | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/panda/board/safety/safety_gm.h b/panda/board/safety/safety_gm.h index 916c2349a8..be2cb7adc8 100644 --- a/panda/board/safety/safety_gm.h +++ b/panda/board/safety/safety_gm.h @@ -16,13 +16,6 @@ const LongitudinalLimits GM_ASCM_LONG_LIMITS = { .max_brake = 400, }; -const LongitudinalLimits GM_ASCM_LONG_LIMITS_SPORT = { - .max_gas = 8191, - .min_gas = 5500, - .inactive_gas = 5500, - .max_brake = 400, -}; - const LongitudinalLimits GM_CAM_LONG_LIMITS = { .max_gas = 7496, .min_gas = 5610, @@ -30,13 +23,6 @@ const LongitudinalLimits GM_CAM_LONG_LIMITS = { .max_brake = 400, }; -const LongitudinalLimits GM_CAM_LONG_LIMITS_SPORT = { - .max_gas = 8848, - .min_gas = 5610, - .inactive_gas = 5650, - .max_brake = 400, -}; - const LongitudinalLimits *gm_long_limits; const int GM_STANDSTILL_THRSLD = 10; // 0.311kph @@ -303,8 +289,7 @@ static int gm_fwd_hook(int bus_num, int addr) { } static safety_config gm_init(uint16_t param) { - sport_mode = alternative_experience & ALT_EXP_RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX; - const bool gm_ascm_int = GET_FLAG(param, GM_PARAM_ASCM_INT); + const bool gm_ascm_int = GET_FLAG(param, GM_PARAM_ASCM_INT); if (GET_FLAG(param, GM_PARAM_HW_CAM)) { gm_hw = GM_CAM; } else if (GET_FLAG(param, GM_PARAM_HW_SDGM)) { @@ -316,17 +301,9 @@ static safety_config gm_init(uint16_t param) { gm_force_ascm = GET_FLAG(param, GM_PARAM_HW_ASCM_LONG); if (gm_hw == GM_ASCM || gm_force_ascm || gm_ascm_int) { - if (sport_mode) { - gm_long_limits = &GM_ASCM_LONG_LIMITS_SPORT; - } else { - gm_long_limits = &GM_ASCM_LONG_LIMITS; - } + gm_long_limits = &GM_ASCM_LONG_LIMITS; } else if ((gm_hw == GM_CAM) || (gm_hw == GM_SDGM)) { - if (sport_mode) { - gm_long_limits = &GM_CAM_LONG_LIMITS_SPORT; - } else { - gm_long_limits = &GM_CAM_LONG_LIMITS; - } + gm_long_limits = &GM_CAM_LONG_LIMITS; } else { }