This commit is contained in:
Your Name
2024-02-08 14:28:00 -06:00
parent ad5e06b0ad
commit b5fd185742
3 changed files with 7 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ class FrogPilotPlanner:
self.x_desired_trajectory_full = np.interp(ModelConstants.T_IDXS, T_IDXS_MPC, mpc.x_solution)
self.x_desired_trajectory = self.x_desired_trajectory_full[:CONTROL_N]
self.params_memory.put_int("CSLCSpeed", int(round(self.v_cruise * CV.MS_TO_MPH)))
# self.params_memory.put_int("CSLCSpeed", int(round(self.v_cruise * CV.MS_TO_MPH)))
def update_v_cruise(self, carState, controlsState, modelData, enabled, v_cruise, v_ego):
# Pfeiferj's Map Turn Speed Controller
@@ -212,7 +212,7 @@ class FrogPilotPlanner:
def update_frogpilot_params(self, params, params_memory):
self.is_metric = params.get_bool("IsMetric")
self.CSLC = params.get_bool("CSLCEnabled")
# self.CSLC = params.get_bool("CSLCEnabled")
self.blindspot_path = params.get_bool("CustomUI") and params.get_bool("BlindSpotPath")