diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 347bfffb5..1374f4cf0 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 99880124b..94204e128 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 b3c96b864..6a8a45ddd 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -415,6 +415,7 @@ void ui_update_frogpilot_params(UIState *s) { 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 cdb0e3493..dbaca1685 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -140,6 +140,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;