Always On Lateral

Co-Authored-By: Jacob Pfeifer <jacob@pfeifer.dev>
This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent aa47ad829f
commit c8ba3e3b9e
49 changed files with 372 additions and 22 deletions
+1
View File
@@ -12,6 +12,7 @@ static void update_state(FrogPilotUIState *fs) {
}
if (fpsm.updated("frogpilotCarState")) {
const cereal::FrogPilotCarState::Reader &frogpilotCarState = fpsm["frogpilotCarState"].getFrogpilotCarState();
frogpilot_scene.always_on_lateral_active = !frogpilot_scene.enabled && frogpilotCarState.getAlwaysOnLateralEnabled();
}
if (fpsm.updated("frogpilotPlan")) {
const cereal::FrogPilotPlan::Reader &frogpilotPlan = fpsm["frogpilotPlan"].getFrogpilotPlan();
+1
View File
@@ -6,6 +6,7 @@
#include "frogpilot/ui/qt/widgets/frogpilot_controls.h"
struct FrogPilotUIScene {
bool always_on_lateral_active;
bool enabled;
bool frogpilot_panel_active;
bool online;