Fired the babysitter

Added toggles to disable driver monitoring, the "Door Open", "Seatbelt Unlatched", and "System Overheated" alerts and all logging.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 64b7f5b401
commit ac5eb105f0
11 changed files with 60 additions and 12 deletions

View File

@@ -974,7 +974,7 @@ void AnnotatedCameraWidget::paintGL() {
}
// DMoji
if (!hideBottomIcons && (sm.rcv_frame("driverStateV2") > s->scene.started_frame)) {
if (!hideBottomIcons && (sm.rcv_frame("driverStateV2") > s->scene.started_frame) && !muteDM) {
update_dmonitoring(s, sm["driverStateV2"].getDriverStateV2(), dm_fade_state, rightHandDM);
drawDriverState(painter, s);
}
@@ -1058,6 +1058,7 @@ void AnnotatedCameraWidget::updateFrogPilotWidgets(QPainter &p) {
laneWidthRight = scene.lane_width_right;
leadInfo = scene.lead_info;
mapOpen = scene.map_open;
muteDM = scene.mute_dm;
obstacleDistance = scene.obstacle_distance;
obstacleDistanceStock = scene.obstacle_distance_stock;
showDriverCamera = scene.show_driver_camera;

View File

@@ -135,6 +135,7 @@ private:
bool experimentalMode;
bool leadInfo;
bool mapOpen;
bool muteDM;
bool showDriverCamera;
bool turnSignalLeft;
bool turnSignalRight;

View File

@@ -306,6 +306,7 @@ void ui_update_params(UIState *s) {
scene.driver_camera = params.getBool("DriverCamera");
scene.experimental_mode_via_press = params.getBool("ExperimentalModeViaPress");
scene.mute_dm = params.getBool("FireTheBabysitter") && params.getBool("MuteDM");
scene.screen_brightness = params.getInt("ScreenBrightness");
scene.wheel_icon = params.getInt("WheelIcon");
}

View File

@@ -186,6 +186,7 @@ typedef struct UIScene {
bool lead_info;
bool map_open;
bool model_ui;
bool mute_dm;
bool show_driver_camera;
bool show_fps;
bool turn_signal_left;