The rest
This commit is contained in:
@@ -200,7 +200,7 @@ class ConditionalExperimentalMode:
|
||||
def update_frogpilot_params(self, is_metric, params):
|
||||
self.curves = params.get_bool("CECurves")
|
||||
self.curves_lead = params.get_bool("CECurvesLead")
|
||||
self.experimental_mode_via_press = params.get_bool("ExperimentalModeViaPress")
|
||||
self.experimental_mode_via_press = params.get_bool("ExperimentalModeActivation")
|
||||
self.limit = params.get_int("CESpeed") * (CV.KPH_TO_MS if is_metric else CV.MPH_TO_MS)
|
||||
self.limit_lead = params.get_int("CESpeedLead") * (CV.KPH_TO_MS if is_metric else CV.MPH_TO_MS)
|
||||
self.navigation = params.get_bool("CENavigation")
|
||||
|
||||
@@ -55,7 +55,7 @@ def calculate_lane_width(lane, current_lane, road_edge):
|
||||
|
||||
|
||||
class FrogPilotPlanner:
|
||||
def __init__(self, params):
|
||||
def __init__(self, params, params_memory):
|
||||
self.cem = ConditionalExperimentalMode()
|
||||
self.mtsc = MapTurnSpeedController()
|
||||
|
||||
@@ -69,7 +69,7 @@ class FrogPilotPlanner:
|
||||
|
||||
self.x_desired_trajectory = np.zeros(CONTROL_N)
|
||||
|
||||
self.update_frogpilot_params(params)
|
||||
self.update_frogpilot_params(params, params_memory)
|
||||
|
||||
def update(self, sm, mpc):
|
||||
carState, controlsState, modelData = sm['carState'], sm['controlsState'], sm['modelV2']
|
||||
@@ -203,7 +203,7 @@ class FrogPilotPlanner:
|
||||
|
||||
pm.send('frogpilotLongitudinalPlan', frogpilot_longitudinal_plan_send)
|
||||
|
||||
def update_frogpilot_params(self, params):
|
||||
def update_frogpilot_params(self, params, params_memory):
|
||||
self.is_metric = params.get_bool("IsMetric")
|
||||
|
||||
self.blindspot_path = params.get_bool("CustomUI") and params.get_bool("BlindSpotPath")
|
||||
|
||||
Reference in New Issue
Block a user