From 56c4a7f39184840904ac812abab3dbc3ae9f86de Mon Sep 17 00:00:00 2001 From: "Schoenberger, Philipp" Date: Tue, 16 Apr 2019 21:29:44 +0200 Subject: [PATCH] display to be aligned channel in joycalib mode --- remote/src/state_joy_calib.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/remote/src/state_joy_calib.cpp b/remote/src/state_joy_calib.cpp index f39a9b2..3d57030 100644 --- a/remote/src/state_joy_calib.cpp +++ b/remote/src/state_joy_calib.cpp @@ -67,20 +67,31 @@ void LCD_state_joy_calibration::update(void) { i -= 1; lcd_show_dots(1,(i *16)/turns); } + lcd.setCursor(12,0); if (input.is_centered(Input::CH_THROTTLE)) { - lcd.setCursor(12,0); + lcd.write(' '); + } else { lcd.write('T'); } + + lcd.setCursor(13,0); if (input.is_centered(Input::CH_YAW)) { - lcd.setCursor(13,0); + lcd.write(' '); + } else { lcd.write('Y'); } + + lcd.setCursor(14,0); if (input.is_centered(Input::CH_PITCH)) { - lcd.setCursor(14,0); + lcd.write(' '); + } else { lcd.write('P'); } + + lcd.setCursor(15,0); if (input.is_centered(Input::CH_ROLL)) { - lcd.setCursor(15,0); + lcd.write(' '); + } else { lcd.write('R'); }