Camera view selection

Added toggle to select the preferred camera view between "auto", "standard", "wide", and "driver".
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent e20aaf75e5
commit 4b511bb036
7 changed files with 19 additions and 2 deletions

View File

@@ -260,6 +260,7 @@ void ui_update_frogpilot_params(UIState *s) {
UIScene &scene = s->scene;
scene.always_on_lateral = params.getBool("AlwaysOnLateral");
scene.camera_view = params.getInt("CameraView");
bool custom_onroad_ui = params.getBool("CustomUI");
scene.acceleration_path = custom_onroad_ui && params.getBool("AccelerationPath");