mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Cosmetics in Trainer screen
This commit is contained in:
parent
fa1e6f087c
commit
7df6ec4c58
1 changed files with 4 additions and 4 deletions
|
@ -21,9 +21,9 @@
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
#if LCD_W >= 212
|
#if LCD_W >= 212
|
||||||
#define TRAINER_CALIB_COLUMN_WIDTH 12
|
#define TRAINER_CALIB_COLUMN_WIDTH (6 * FW)
|
||||||
#else
|
#else
|
||||||
#define TRAINER_CALIB_COLUMN_WIDTH 8
|
#define TRAINER_CALIB_COLUMN_WIDTH (4 * FW + 2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void menuRadioTrainer(event_t event)
|
void menuRadioTrainer(event_t event)
|
||||||
|
@ -86,8 +86,8 @@ void menuRadioTrainer(event_t event)
|
||||||
if (attr)
|
if (attr)
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
lcdDrawText(0*FW, MENU_HEADER_HEIGHT+1+6*FH, STR_CAL, attr);
|
lcdDrawText(0*FW, MENU_HEADER_HEIGHT+1+6*FH, STR_CAL, attr);
|
||||||
for (uint8_t i=0; i<4; i++) {
|
for (uint8_t i = 0; i < 4; i++) {
|
||||||
uint8_t x = (i*TRAINER_CALIB_COLUMN_WIDTH + 16) * FW/2;
|
uint8_t x = 8*FW + (i * TRAINER_CALIB_COLUMN_WIDTH);
|
||||||
int32_t chVal = ppmInput[i] - g_eeGeneral.trainer.calib[i];
|
int32_t chVal = ppmInput[i] - g_eeGeneral.trainer.calib[i];
|
||||||
chVal *= g_eeGeneral.trainer.mix[i].studWeight * 10;
|
chVal *= g_eeGeneral.trainer.mix[i].studWeight * 10;
|
||||||
chVal /= 512;
|
chVal /= 512;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue