mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 09:15:38 +03:00
Fixes 8541 and other trainer mode enhancements
This commit is contained in:
parent
5239d2c37a
commit
dd7ca0aad7
11 changed files with 126 additions and 118 deletions
|
@ -186,6 +186,9 @@ enum ModuleIndex {
|
|||
EXTERNAL_MODULE,
|
||||
SPORT_MODULE,
|
||||
};
|
||||
|
||||
// TODO: simplify at an eeprom change to a single master list and use ui filters. Simplies radio conversions and both radio and companion code
|
||||
// Companion opentxeeprom.cpp will require after import and before export manipulation removed
|
||||
enum TrainerMode {
|
||||
TRAINER_MODE_MASTER_TRAINER_JACK,
|
||||
TRAINER_MODE_SLAVE,
|
||||
|
@ -208,6 +211,7 @@ enum TrainerMode {
|
|||
};
|
||||
#endif
|
||||
|
||||
// TODO: simplify at an eeprom change to a single master list and use ui filters
|
||||
#define TRAINER_MODE_MIN() TRAINER_MODE_MASTER_TRAINER_JACK
|
||||
|
||||
#if !defined(HARDWARE_EXTERNAL_MODULE)
|
||||
|
|
|
@ -390,7 +390,7 @@ PACK(struct TelemetrySensor {
|
|||
*/
|
||||
|
||||
PACK(struct TrainerModuleData {
|
||||
uint8_t mode:3;
|
||||
uint8_t mode:3; // TODO: simplify value at an eeprom change refer compile driven enum handling in dataconstants.h
|
||||
uint8_t spare1:5;
|
||||
uint8_t channelsStart;
|
||||
int8_t channelsCount; // 0=8 channels
|
||||
|
@ -970,4 +970,4 @@ static inline void check_struct()
|
|||
|
||||
#undef CHKSIZE
|
||||
}
|
||||
#endif /* BACKUP */
|
||||
#endif /* BACKUP */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue