Browse Source

AP_OSD: add kilo symbol to RPM panel

c415-sdk
vierfuffzig 4 years ago committed by Andrew Tridgell
parent
commit
10f15fbba5
  1. 3
      libraries/AP_OSD/AP_OSD_Screen.cpp

3
libraries/AP_OSD/AP_OSD_Screen.cpp

@ -1055,6 +1055,7 @@ AP_OSD_Screen::AP_OSD_Screen() @@ -1055,6 +1055,7 @@ AP_OSD_Screen::AP_OSD_Screen()
#define SYM_AH 0xF3
#define SYM_MW 0xF4
#define SYM_CLK 0xBC
#define SYM_KILO 0x4B
void AP_OSD_AbstractScreen::set_backend(AP_OSD_Backend *_backend)
{
@ -1610,7 +1611,7 @@ void AP_OSD_Screen::draw_blh_rpm(uint8_t x, uint8_t y) @@ -1610,7 +1611,7 @@ void AP_OSD_Screen::draw_blh_rpm(uint8_t x, uint8_t y)
if (!blheli->get_telem_data(0, td)) {
return;
}
backend->write(x, y, false, "%5d%c", td.rpm, SYM_RPM);
backend->write(x, y, false, "%3.1f%c%c", td.rpm * 0.001f, SYM_KILO, SYM_RPM);
}
}

Loading…
Cancel
Save