Rotating steering wheel in onroad UI

Added toggle to rotate the steering wheel in the top right corner of the onroad UI.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 6661c4dd89
commit 6d1cf97da4
6 changed files with 38 additions and 1 deletions

View File

@@ -237,6 +237,9 @@ static void update_state(UIState *s) {
if (scene.pedals_on_ui) {
scene.standstill = carState.getStandstill();
}
if (scene.rotating_wheel) {
scene.steering_angle_deg = carState.getSteeringAngleDeg();
}
}
if (sm.updated("controlsState")) {
auto controlsState = sm["controlsState"].getControlsState();
@@ -346,6 +349,8 @@ void ui_update_frogpilot_params(UIState *s) {
scene.full_map = quality_of_life_visuals && params.getBool("FullMap");
scene.hide_speed = quality_of_life_visuals && params.getBool("HideSpeed");
scene.hide_speed_ui = scene.hide_speed && params.getBool("HideSpeedUI");
scene.rotating_wheel = params.getBool("RotatingWheel");
}
void UIState::updateStatus() {