feat: Add facilty for custom throttle warning position (#1395)
* replace magic number for throttle idle with correct define * settings for custom throttle warning position * settings fixed not to break byte-aligment of bit-fields * evaluate custom throttle warning position * add requested throttle value to warning text * comment about field alignment in ModelData struct * Menu for editing custom throttle warning for 128x64 radios Tested on RM TX12 * Improoved menu display * move displayed strings to translation * translation template added for each language * support for 212x64 B&W radios * menu for colorlcd not tested * corrected translation entry for TW * corrected handling of padding bits in ModelData structure * Companion support for custom throttle warning position * Rebase catchup Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
@@ -817,6 +817,9 @@ static const struct YamlNode struct_ModelData[] = {
|
||||
YAML_UNSIGNED( "extendedLimits", 1 ),
|
||||
YAML_UNSIGNED( "extendedTrims", 1 ),
|
||||
YAML_UNSIGNED( "throttleReversed", 1 ),
|
||||
YAML_UNSIGNED( "enableCustomThrottleWarning", 1 ),
|
||||
YAML_PADDING( 7 ),
|
||||
YAML_SIGNED( "customThrottleWarningPosition", 8 ),
|
||||
YAML_UNSIGNED( "beepANACenter", 16 ),
|
||||
YAML_ARRAY("mixData", 160, 64, struct_MixData, NULL),
|
||||
YAML_ARRAY("limitData", 88, 32, struct_LimitData, NULL),
|
||||
@@ -864,7 +867,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
||||
YAML_END
|
||||
};
|
||||
|
||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 26
|
||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 29
|
||||
|
||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user