Browse Source

AP_OSD_Screen: move vspeed decimal switch to 10 m/s

zr-v5.1
vierfuffzig 4 years ago committed by Andrew Tridgell
parent
commit
e830494f0f
  1. 2
      libraries/AP_OSD/AP_OSD_Screen.cpp

2
libraries/AP_OSD/AP_OSD_Screen.cpp

@ -1457,7 +1457,7 @@ void AP_OSD_Screen::draw_vspeed(uint8_t x, uint8_t y) @@ -1457,7 +1457,7 @@ void AP_OSD_Screen::draw_vspeed(uint8_t x, uint8_t y)
sym = SYM_DOWN_DOWN;
}
vs_scaled = u_scale(VSPEED, fabsf(vspd));
if (vs_scaled < 5.0f) {
if (vs_scaled < 10.0f) {
backend->write(x, y, false, "%c%2.1f%c", sym, (float)vs_scaled, u_icon(VSPEED));
} else {
backend->write(x, y, false, "%c%3d%c", sym, (int)vs_scaled, u_icon(VSPEED));

Loading…
Cancel
Save