mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-03 06:33:50 +08:00
Show Driver Camera When In Reverse
This commit is contained in:
@@ -56,4 +56,5 @@ void FrogPilotUIState::update() {
|
||||
update_state(this);
|
||||
|
||||
frogpilot_scene.conditional_status = frogpilot_scene.enabled ? params_memory.getInt("CEStatus") : 0;
|
||||
frogpilot_scene.driver_camera_timer = frogpilot_scene.reverse && frogpilot_scene.frogpilot_toggles.value("driver_camera_in_reverse").toBool() ? frogpilot_scene.driver_camera_timer + 1 : 0;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ struct FrogPilotUIScene {
|
||||
bool standstill;
|
||||
|
||||
int conditional_status;
|
||||
int driver_camera_timer;
|
||||
int started_timer;
|
||||
|
||||
QJsonObject frogpilot_toggles;
|
||||
|
||||
Reference in New Issue
Block a user