mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-24 04:23:47 +08:00
Merge remote-tracking branch 'openpilot/master' into nov-19-sync
This commit is contained in:
@@ -83,8 +83,8 @@ class ModelsLayout(Widget):
|
||||
|
||||
def _update_lane_turn_step(self):
|
||||
new_step = int(round(100 / CV.MPH_TO_KPH)) if self._params.get_bool("IsMetric") else 100
|
||||
if self.lane_turn_value_control.action_item.option_control.value_change_step != new_step:
|
||||
self.lane_turn_value_control.action_item.option_control.value_change_step = new_step
|
||||
if self.lane_turn_value_control.action_item.value_change_step != new_step:
|
||||
self.lane_turn_value_control.action_item.value_change_step = new_step
|
||||
|
||||
def _update_lagd_description(self):
|
||||
desc = tr("Enable this for the car to learn and adapt its steering response time. Disable to use a fixed steering response time. " +
|
||||
|
||||
@@ -68,7 +68,10 @@ class OptionControlSP(ItemAction):
|
||||
if self.value_map:
|
||||
self.params.put(self.param_key, self.value_map[value])
|
||||
else:
|
||||
self.params.put(self.param_key, value)
|
||||
if self.use_float_scaling:
|
||||
self.params.put(self.param_key, value / 100.0)
|
||||
else:
|
||||
self.params.put(self.param_key, value)
|
||||
if self.on_value_changed:
|
||||
self.on_value_changed(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user