feat: Deadzone option for NV14 sticks (#1777)
Imported from open-flysky/Flysky-OpenTX-Test-Branch * companion: Don't nuke `stickDeadZone` setting * Implement data storage properly * Add missing check for NV14 storage struct sizes * Formatting * Use one less byte in the packed data struct Thanks @raphaelcoeffic :) * Move setting of stickDeadZone default * Use a Choice combo rather than NumberEdit * Good riddance magic number * Also set default stick zone if setting is missing * Teach tests about `STICK_DEAD_ZONE` * Tweak choice width * Cpn NV14 add stick dead zone to hardware and section labels * Cpn NV14 align default pot names to radio Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
co-authored by
elecpower
parent
9d27a6923c
commit
d9b51f8ecf
@@ -298,7 +298,12 @@ void generalDefault()
|
||||
g_eeGeneral.slidersConfig = DEFAULT_SLIDERS_CONFIG;
|
||||
#endif
|
||||
|
||||
// vBatWarn is voltage in 100mV, vBatMin is in 100mV but with -9V offset, vBatMax has a -12V offset
|
||||
#if defined(STICK_DEAD_ZONE)
|
||||
g_eeGeneral.stickDeadZone = DEFAULT_STICK_DEADZONE;
|
||||
#endif
|
||||
|
||||
// vBatWarn is voltage in 100mV, vBatMin is in 100mV but with -9V offset,
|
||||
// vBatMax has a -12V offset
|
||||
g_eeGeneral.vBatWarn = BATTERY_WARN;
|
||||
if (BATTERY_MIN != 90)
|
||||
g_eeGeneral.vBatMin = BATTERY_MIN - 90;
|
||||
|
||||
Reference in New Issue
Block a user