Skip to content

Commit

Permalink
Fudge factor to match comma's setting for bat temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Feb 24, 2020
1 parent 0d8da09 commit aea53d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions selfdrive/ui/paint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static void ui_draw_vision_speed(UIState *s) {
nvgFontSize(s->vg, 50);
//nvgText(s->vg, 145, 32, ".", NULL);//offset from uptime()


/*
nvgText(s->vg, 260, 50, "gpsAcurracy:", NULL);
sprintf(buffer,"%.2f | %.2f", scene->gpsAccuracyPhone, scene->gpsAccuracyUblox );
buffer[15] = '\0';
Expand Down Expand Up @@ -719,10 +719,6 @@ static void ui_draw_vision_speed(UIState *s) {
sprintf(buffer,"%.3f", scene->output_scale);
buffer[15] = '\0';
nvgText(s->vg, 550, 220, buffer, NULL);



/*
nvgText(s->vg, 260, 200, "previousTripDistance:", NULL);
sprintf(buffer,"%.2f", previousTripDistance);
Expand All @@ -747,12 +743,10 @@ static void ui_draw_vision_speed(UIState *s) {
nvgText(s->vg, 260, 350, "odometer (.6211):", NULL);
sprintf(buffer,"%.2f", scene->odometer*.6211);
buffer[11] = '\0';
nvgText(s->vg, 700, 350, buffer, NULL);
*/
nvgText(s->vg, 700, 350, buffer, NULL)
//Compass
/*
if((scene->bearingUblox >= 337.5) || (scene->bearingUblox < 22.5)){
sprintf(direction,"%s", "N" );
} else if ((scene->bearingUblox >= 22.5) && (scene->bearingUblox < 67.5)){
Expand Down Expand Up @@ -1055,7 +1049,7 @@ static void bb_ui_draw_measures_left(UIState *s, int bb_x, int bb_y, int bb_w )
close(fd);


snprintf(val_str, sizeof(val_str), "%s°C", bat_temp);
snprintf(val_str, sizeof(val_str), "%d°C", atoi(bat_temp)+7);
snprintf(uom_str, sizeof(uom_str), "");
bb_h +=bb_ui_draw_measure(s, val_str, uom_str, "BAT TEMP",
bb_rx, bb_ry, bb_uom_dx,
Expand Down

0 comments on commit aea53d8

Please sign in to comment.