mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Throttle label and missing string defs
This commit is contained in:
parent
4506328144
commit
55ff2e6b5e
4 changed files with 17 additions and 8 deletions
|
@ -870,6 +870,7 @@ enum menuModelSetupItems {
|
||||||
ITEM_MODEL_EXTENDED_LIMITS,
|
ITEM_MODEL_EXTENDED_LIMITS,
|
||||||
ITEM_MODEL_EXTENDED_TRIMS,
|
ITEM_MODEL_EXTENDED_TRIMS,
|
||||||
ITEM_MODEL_TRIM_INC,
|
ITEM_MODEL_TRIM_INC,
|
||||||
|
ITEM_MODEL_THROTTLE_LABEL,
|
||||||
ITEM_MODEL_THROTTLE_REVERSED,
|
ITEM_MODEL_THROTTLE_REVERSED,
|
||||||
ITEM_MODEL_THROTTLE_TRACE,
|
ITEM_MODEL_THROTTLE_TRACE,
|
||||||
ITEM_MODEL_THROTTLE_TRIM,
|
ITEM_MODEL_THROTTLE_TRIM,
|
||||||
|
@ -965,19 +966,19 @@ void menuModelSetup(uint8_t event)
|
||||||
#define POT_WARN_ITEMS() ((g_model.nPotsToWarn >> 6) ? (uint8_t)NUM_POTS : (uint8_t)0)
|
#define POT_WARN_ITEMS() ((g_model.nPotsToWarn >> 6) ? (uint8_t)NUM_POTS : (uint8_t)0)
|
||||||
|
|
||||||
bool CURSOR_ON_CELL = (m_posHorz >= 0);
|
bool CURSOR_ON_CELL = (m_posHorz >= 0);
|
||||||
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 1, 0, 0, 0, 0,LABEL(PreflightCheck), CASE_PCBTARANIS(0) 0, 7, POT_WARN_ITEMS(), NAVIGATION_LINE_BY_LINE|(NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1), LABEL(InternalModule), 0, IF_PORT1_ON(1), IF_PORT1_ON(IS_D8_RX(0) ? (uint8_t)1 : (uint8_t)2), IF_PORT1_ON(FAILSAFE_ROWS(0)), LABEL(ExternalModule), (g_model.externalModule==MODULE_TYPE_XJT || IS_MODULE_DSM2(EXTERNAL_MODULE)) ? (uint8_t)1 : (uint8_t)0, PORT2_CHANNELS_ROWS(), (IS_MODULE_XJT(1) && IS_D8_RX(1)) ? (uint8_t)1 : (IS_MODULE_PPM(1) || IS_MODULE_XJT(1) || IS_MODULE_DSM2(1)) ? (uint8_t)2 : HIDDEN_ROW, IF_PORT2_XJT(FAILSAFE_ROWS(1)), LABEL(Trainer), 0, TRAINER_CHANNELS_ROWS(), IF_TRAINER_ON(2)});
|
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 1, 0,LABEL(Throttle), 0, 0, 0,LABEL(PreflightCheck), CASE_PCBTARANIS(0) 0, 7, POT_WARN_ITEMS(), NAVIGATION_LINE_BY_LINE|(NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1), LABEL(InternalModule), 0, IF_PORT1_ON(1), IF_PORT1_ON(IS_D8_RX(0) ? (uint8_t)1 : (uint8_t)2), IF_PORT1_ON(FAILSAFE_ROWS(0)), LABEL(ExternalModule), (g_model.externalModule==MODULE_TYPE_XJT || IS_MODULE_DSM2(EXTERNAL_MODULE)) ? (uint8_t)1 : (uint8_t)0, PORT2_CHANNELS_ROWS(), (IS_MODULE_XJT(1) && IS_D8_RX(1)) ? (uint8_t)1 : (IS_MODULE_PPM(1) || IS_MODULE_XJT(1) || IS_MODULE_DSM2(1)) ? (uint8_t)2 : HIDDEN_ROW, IF_PORT2_XJT(FAILSAFE_ROWS(1)), LABEL(Trainer), 0, TRAINER_CHANNELS_ROWS(), IF_TRAINER_ON(2)});
|
||||||
#elif defined(CPUM64)
|
#elif defined(CPUM64)
|
||||||
#define CURSOR_ON_CELL (true)
|
#define CURSOR_ON_CELL (true)
|
||||||
#define MODEL_SETUP_MAX_LINES ((IS_PPM_PROTOCOL(protocol)||IS_DSM2_PROTOCOL(protocol)||IS_PXX_PROTOCOL(protocol)) ? 1+ITEM_MODEL_SETUP_MAX : ITEM_MODEL_SETUP_MAX)
|
#define MODEL_SETUP_MAX_LINES ((IS_PPM_PROTOCOL(protocol)||IS_DSM2_PROTOCOL(protocol)||IS_PXX_PROTOCOL(protocol)) ? 1+ITEM_MODEL_SETUP_MAX : ITEM_MODEL_SETUP_MAX)
|
||||||
|
|
||||||
uint8_t protocol = g_model.protocol;
|
uint8_t protocol = g_model.protocol;
|
||||||
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1, FIELD_PROTOCOL_MAX, 2 });
|
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 0, 0,LABEL(Throttle), 0, 0, 0, 0, 5, NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1, FIELD_PROTOCOL_MAX, 2 });
|
||||||
#else
|
#else
|
||||||
#define CURSOR_ON_CELL (true)
|
#define CURSOR_ON_CELL (true)
|
||||||
#define MODEL_SETUP_MAX_LINES ((IS_PPM_PROTOCOL(protocol)||IS_DSM2_PROTOCOL(protocol)||IS_PXX_PROTOCOL(protocol)) ? 1+ITEM_MODEL_SETUP_MAX : ITEM_MODEL_SETUP_MAX)
|
#define MODEL_SETUP_MAX_LINES ((IS_PPM_PROTOCOL(protocol)||IS_DSM2_PROTOCOL(protocol)||IS_PXX_PROTOCOL(protocol)) ? 1+ITEM_MODEL_SETUP_MAX : ITEM_MODEL_SETUP_MAX)
|
||||||
|
|
||||||
uint8_t protocol = g_model.protocol;
|
uint8_t protocol = g_model.protocol;
|
||||||
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 1, 0, 0, 0, 0, 0, 6, NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1, FIELD_PROTOCOL_MAX, 2, CASE_PCBSKY9X(1) CASE_PCBSKY9X(2) });
|
MENU_TAB({ 0, 0, CASE_PCBTARANIS(0) 2, IF_PERSISTENT_TIMERS(0) 0, 0, 2, IF_PERSISTENT_TIMERS(0) 0, 0, 0, 1, 0,LABEL(Throttle), 0, 0, 0, 0, 6, NUM_STICKS+NUM_POTS+NUM_ROTARY_ENCODERS-1, FIELD_PROTOCOL_MAX, 2, CASE_PCBSKY9X(1) CASE_PCBSKY9X(2) });
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!MENU_CHECK(menuTabModel, e_ModelSetup, MODEL_SETUP_MAX_LINES)) {
|
if (!MENU_CHECK(menuTabModel, e_ModelSetup, MODEL_SETUP_MAX_LINES)) {
|
||||||
|
@ -1122,6 +1123,10 @@ void menuModelSetup(uint8_t event)
|
||||||
g_model.trimInc = selectMenuItem(MODEL_SETUP_2ND_COLUMN, y, STR_TRIMINC, STR_VTRIMINC, g_model.trimInc, -2, 2, attr, event);
|
g_model.trimInc = selectMenuItem(MODEL_SETUP_2ND_COLUMN, y, STR_TRIMINC, STR_VTRIMINC, g_model.trimInc, -2, 2, attr, event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ITEM_MODEL_THROTTLE_LABEL:
|
||||||
|
lcd_putsLeft(y, STR_THROTTLE_LABEL);
|
||||||
|
break;
|
||||||
|
|
||||||
case ITEM_MODEL_THROTTLE_REVERSED:
|
case ITEM_MODEL_THROTTLE_REVERSED:
|
||||||
g_model.throttleReversed = onoffMenuItem(g_model.throttleReversed, MODEL_SETUP_2ND_COLUMN, y, STR_THROTTLEREVERSE, attr, event ) ;
|
g_model.throttleReversed = onoffMenuItem(g_model.throttleReversed, MODEL_SETUP_2ND_COLUMN, y, STR_THROTTLEREVERSE, attr, event ) ;
|
||||||
break;
|
break;
|
||||||
|
@ -1145,7 +1150,7 @@ void menuModelSetup(uint8_t event)
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
#if defined(PCBTARANIS)
|
||||||
case ITEM_MODEL_PREFLIGHT_LABEL:
|
case ITEM_MODEL_PREFLIGHT_LABEL:
|
||||||
lcd_putsLeft(y, TR_PREFLIGHT);
|
lcd_putsLeft(y, STR_PREFLIGHT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_MODEL_CHECKLIST_DISPLAY:
|
case ITEM_MODEL_CHECKLIST_DISPLAY:
|
||||||
|
|
|
@ -211,6 +211,7 @@ const pm_char STR_ALARMWARNING[] PROGMEM = TR_ALARMWARNING;
|
||||||
#if defined(ROTARY_ENCODERS)
|
#if defined(ROTARY_ENCODERS)
|
||||||
const pm_char STR_RENAVIG[] PROGMEM = TR_RENAVIG;
|
const pm_char STR_RENAVIG[] PROGMEM = TR_RENAVIG;
|
||||||
#endif
|
#endif
|
||||||
|
const pm_char STR_THROTTLE_LABEL[] PROGMEM = TR_THROTTLE_LABEL;
|
||||||
const pm_char STR_THROTTLEREVERSE[] PROGMEM = TR_THROTTLEREVERSE;
|
const pm_char STR_THROTTLEREVERSE[] PROGMEM = TR_THROTTLEREVERSE;
|
||||||
const pm_char STR_MINUTEBEEP[] PROGMEM = TR_MINUTEBEEP;
|
const pm_char STR_MINUTEBEEP[] PROGMEM = TR_MINUTEBEEP;
|
||||||
const pm_char STR_BEEPCOUNTDOWN[] PROGMEM = TR_BEEPCOUNTDOWN;
|
const pm_char STR_BEEPCOUNTDOWN[] PROGMEM = TR_BEEPCOUNTDOWN;
|
||||||
|
|
|
@ -370,6 +370,7 @@ extern const pm_char STR_INACTIVITYALARM[];
|
||||||
extern const pm_char STR_MEMORYWARNING[];
|
extern const pm_char STR_MEMORYWARNING[];
|
||||||
extern const pm_char STR_ALARMWARNING[];
|
extern const pm_char STR_ALARMWARNING[];
|
||||||
extern const pm_char STR_RENAVIG[];
|
extern const pm_char STR_RENAVIG[];
|
||||||
|
extern const pm_char STR_THROTTLE_LABEL[];
|
||||||
extern const pm_char STR_THROTTLEREVERSE[];
|
extern const pm_char STR_THROTTLEREVERSE[];
|
||||||
extern const pm_char STR_MINUTEBEEP[];
|
extern const pm_char STR_MINUTEBEEP[];
|
||||||
extern const pm_char STR_BEEPCOUNTDOWN[];
|
extern const pm_char STR_BEEPCOUNTDOWN[];
|
||||||
|
@ -611,7 +612,7 @@ extern const pm_char STR_SD_SECTORS[];
|
||||||
extern const pm_char STR_SD_SIZE[];
|
extern const pm_char STR_SD_SIZE[];
|
||||||
extern const pm_char STR_TYPE[];
|
extern const pm_char STR_TYPE[];
|
||||||
extern const pm_char STR_GLOBAL_VARS[];
|
extern const pm_char STR_GLOBAL_VARS[];
|
||||||
extern const pm_char STR_GLOBAL_V[];
|
extern const pm_char STR_GLOBAL_V[];
|
||||||
extern const pm_char STR_GLOBAL_VAR[];
|
extern const pm_char STR_GLOBAL_VAR[];
|
||||||
extern const pm_char STR_OWN[];
|
extern const pm_char STR_OWN[];
|
||||||
extern const pm_char STR_ROTARY_ENCODER[];
|
extern const pm_char STR_ROTARY_ENCODER[];
|
||||||
|
@ -687,6 +688,7 @@ extern const pm_char STR_VIEW_TEXT[];
|
||||||
extern const pm_char STR_VIEW_CHANNELS[];
|
extern const pm_char STR_VIEW_CHANNELS[];
|
||||||
extern const pm_char STR_VIEW_NOTES[];
|
extern const pm_char STR_VIEW_NOTES[];
|
||||||
extern const pm_char STR_POTWARNING[];
|
extern const pm_char STR_POTWARNING[];
|
||||||
|
extern const pm_char STR_PREFLIGHT[];
|
||||||
extern const pm_char STR_CHECKLIST[];
|
extern const pm_char STR_CHECKLIST[];
|
||||||
extern const pm_char STR_UART3MODE[];
|
extern const pm_char STR_UART3MODE[];
|
||||||
extern const pm_char STR_POT1TYPE[];
|
extern const pm_char STR_POT1TYPE[];
|
||||||
|
|
|
@ -450,8 +450,8 @@
|
||||||
#define TR_ELIMITS TR("E.Limits", "Extended Limits")
|
#define TR_ELIMITS TR("E.Limits", "Extended Limits")
|
||||||
#define TR_ETRIMS TR("E.Trims", "Extended Trims")
|
#define TR_ETRIMS TR("E.Trims", "Extended Trims")
|
||||||
#define TR_TRIMINC "Trim Step"
|
#define TR_TRIMINC "Trim Step"
|
||||||
#define TR_TTRACE TR("T-Source", "Throttle Source")
|
#define TR_TTRACE INDENT "Source"
|
||||||
#define TR_TTRIM TR("T-Trim", "Throttle Trim")
|
#define TR_TTRIM INDENT "Idle Trim"
|
||||||
#define TR_BEEPCTR TR("Ctr Beep", "Center Beep")
|
#define TR_BEEPCTR TR("Ctr Beep", "Center Beep")
|
||||||
#define TR_PROTO TR(INDENT "Proto", INDENT "Protocol")
|
#define TR_PROTO TR(INDENT "Proto", INDENT "Protocol")
|
||||||
#define TR_PPMFRAME TR("PPM frame", INDENT "PPM frame")
|
#define TR_PPMFRAME TR("PPM frame", INDENT "PPM frame")
|
||||||
|
@ -514,7 +514,8 @@
|
||||||
#define TR_MEMORYWARNING INDENT"Memory Low"
|
#define TR_MEMORYWARNING INDENT"Memory Low"
|
||||||
#define TR_ALARMWARNING INDENT"Sound Off"
|
#define TR_ALARMWARNING INDENT"Sound Off"
|
||||||
#define TR_RENAVIG "RotEnc Navig"
|
#define TR_RENAVIG "RotEnc Navig"
|
||||||
#define TR_THROTTLEREVERSE TR("T-Reverse", "Throttle reverse")
|
#define TR_THROTTLE_LABEL "Throttle"
|
||||||
|
#define TR_THROTTLEREVERSE INDENT "Reverse"
|
||||||
#define TR_MINUTEBEEP TR(INDENT"Minute",INDENT"Minute call")
|
#define TR_MINUTEBEEP TR(INDENT"Minute",INDENT"Minute call")
|
||||||
#define TR_BEEPCOUNTDOWN INDENT"Countdown"
|
#define TR_BEEPCOUNTDOWN INDENT"Countdown"
|
||||||
#define TR_PERSISTENT TR(INDENT"Persist.",INDENT"Persistent")
|
#define TR_PERSISTENT TR(INDENT"Persist.",INDENT"Persistent")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue