call it vehicle, not panda

pull/1413/head
Comma Device 5 years ago
parent 98ec06e125
commit d0e0746138
  1. 27
      selfdrive/ui/sidebar.cc

@ -154,24 +154,15 @@ static void ui_draw_sidebar_panda_metric(UIState *s) {
if (s->scene.hwType == cereal_HealthData_HwType_unknown) { if (s->scene.hwType == cereal_HealthData_HwType_unknown) {
panda_severity = 2; panda_severity = 2;
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "NO\nPANDA"); snprintf(panda_message_str, sizeof(panda_message_str), "%s", "NO\nVEHICLE");
} else if (s->scene.hwType == cereal_HealthData_HwType_whitePanda) { } else {
panda_severity = 0; if (s->scene.satelliteCount < 6) {
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "PANDA\nACTIVE"); panda_severity = 1;
} else if ( snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nNO GPS");
(s->scene.hwType == cereal_HealthData_HwType_greyPanda) || } else if (s->scene.satelliteCount >= 6) {
(s->scene.hwType == cereal_HealthData_HwType_blackPanda) || panda_severity = 0;
(s->scene.hwType == cereal_HealthData_HwType_uno)) { snprintf(panda_message_str, sizeof(panda_message_str), "%s", "VEHICLE\nGOOD GPS");
if (s->scene.satelliteCount == -1) { }
panda_severity = 0;
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "PANDA\nACTIVE");
} else if (s->scene.satelliteCount < 6) {
panda_severity = 1;
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "PANDA\nNO GPS");
} else if (s->scene.satelliteCount >= 6) {
panda_severity = 0;
snprintf(panda_message_str, sizeof(panda_message_str), "%s", "PANDA\nGOOD GPS");
}
} }
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);

Loading…
Cancel
Save