* Moved getFieldInfo and getValue up right after related functions
* Modified getValue to return a valid status, so Lua can see if it got zero because of invalid source id
* Added new getSourceValue Lua function per Issue #781
Also added alias getSourceInfo for getFieldInfo
* Updated according to comment https://github.com/EdgeTX/edgetx/pull/2175#issuecomment-1245605114
* Replaced isFresh() by !isOld() as requested in https://github.com/EdgeTX/edgetx/pull/2316#issuecomment-1246759370
* Clean up `lua_pushtablenil` - tables cannot hold nil values
* Changed isFresh() to !isOld() ... AGAIN
* Return both `!isOld()` and `isFresh()`
* Return nil for all values if the item does not exist
* Return 0 instead of pushing three nil values
* Update documentation
2022-09-28 09:42:16 +10:00
RistoGitHubNiel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets.
Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
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>