mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-08 21:35:43 +08:00
ui: Add Dynamic Lane Profile to Feature Status Panel (#259)
This commit is contained in:
@@ -234,6 +234,8 @@ void ui_update_params(UIState *s) {
|
||||
auto params = Params();
|
||||
s->scene.is_metric = params.getBool("IsMetric");
|
||||
s->scene.map_on_left = params.getBool("NavSettingLeftSide");
|
||||
s->scene.dynamic_lane_profile_toggle = params.getBool("DynamicLaneProfileToggle");
|
||||
s->scene.dynamic_lane_profile = std::atoi(params.get("DynamicLaneProfile").c_str());
|
||||
s->scene.visual_brake_lights = params.getBool("BrakeLights");
|
||||
s->scene.onroadScreenOff = std::atoi(params.get("OnroadScreenOff").c_str());
|
||||
s->scene.onroadScreenOffBrightness = std::atoi(params.get("OnroadScreenOffBrightness").c_str());
|
||||
|
||||
@@ -179,7 +179,9 @@ typedef struct UIScene {
|
||||
bool started, ignition, is_metric, map_on_left, longitudinal_control;
|
||||
uint64_t started_frame;
|
||||
|
||||
int dynamic_lane_profile;
|
||||
bool dynamic_lane_profile_status = true;
|
||||
bool dynamic_lane_profile_toggle;
|
||||
|
||||
bool visual_brake_lights;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user