From 10f15fbba58e638463dc9d654585129a95fa985a Mon Sep 17 00:00:00 2001 From: vierfuffzig Date: Fri, 9 Apr 2021 20:19:06 +0200 Subject: [PATCH] AP_OSD: add kilo symbol to RPM panel --- libraries/AP_OSD/AP_OSD_Screen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index 4909c590ae..4df44ef212 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -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) 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); } }