|
|
@ -144,6 +144,7 @@ static void ui_draw_sidebar_panda_metric(UIState *s) { |
|
|
|
panda_severity = 2; |
|
|
|
panda_severity = 2; |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "NO\nVEHICLE"); |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "NO\nVEHICLE"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
if (s->started){ |
|
|
|
if (s->scene.satelliteCount < 6) { |
|
|
|
if (s->scene.satelliteCount < 6) { |
|
|
|
panda_severity = 1; |
|
|
|
panda_severity = 1; |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nNO GPS"); |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nNO GPS"); |
|
|
@ -151,6 +152,10 @@ static void ui_draw_sidebar_panda_metric(UIState *s) { |
|
|
|
panda_severity = 0; |
|
|
|
panda_severity = 0; |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nGOOD GPS"); |
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nGOOD GPS"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
panda_severity = 0; |
|
|
|
|
|
|
|
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nONLINE"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ui_draw_sidebar_metric(s, NULL, NULL, panda_severity, panda_y_offset, panda_message_str); |
|
|
|
ui_draw_sidebar_metric(s, NULL, NULL, panda_severity, panda_y_offset, panda_message_str); |
|
|
|