diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 6f15d6daf..ab4af8b56 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -154,6 +154,8 @@ void TogglesPanel::updateToggles() { disengage_on_accelerator_toggle->setVisible(!params.getBool("AlwaysOnLateral")); auto driver_camera_toggle = toggles["RecordFront"]; driver_camera_toggle->setVisible(!(params.getBool("DeviceManagement") && params.getBool("NoLogging") && params.getBool("NoUploads"))); + auto nav_settings_left_toggle = toggles["NavSettingLeftSide"]; + nav_settings_left_toggle->setVisible(!params.getBool("FullMap")); auto experimental_mode_toggle = toggles["ExperimentalMode"]; auto op_long_toggle = toggles["ExperimentalLongitudinalEnabled"]; diff --git a/selfdrive/ui/qt/onroad/onroad_home.cc b/selfdrive/ui/qt/onroad/onroad_home.cc index 71a11f11a..25846737a 100644 --- a/selfdrive/ui/qt/onroad/onroad_home.cc +++ b/selfdrive/ui/qt/onroad/onroad_home.cc @@ -63,7 +63,7 @@ void OnroadWindow::updateState(const UIState &s) { return; } - if (s.scene.map_on_left) { + if (s.scene.map_on_left || s.scene.full_map) { split->setDirection(QBoxLayout::LeftToRight); } else { split->setDirection(QBoxLayout::RightToLeft); diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 073000eec..d5e2804a3 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -419,6 +419,7 @@ void ui_update_frogpilot_params(UIState *s, Params ¶ms) { bool quality_of_life_visuals = params.getBool("QOLVisuals"); scene.big_map = quality_of_life_visuals && params.getBool("BigMap"); + scene.full_map = scene.big_map && params.getBool("FullMap"); scene.speed_limit_controller = scene.longitudinal_control && params.getBool("SpeedLimitController"); scene.show_slc_offset = scene.speed_limit_controller && params.getBool("ShowSLCOffset"); diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index 14dfafb7b..f01614a77 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -141,6 +141,7 @@ typedef struct UIScene { bool experimental_mode; bool experimental_mode_via_screen; bool fahrenheit; + bool full_map; bool has_auto_tune; bool has_lead; bool hide_lead_marker;