Standard AFHDS2A protocol transmits all values as 2 raw bytes
and a stock FS-i6 transmitter shows voltage type values properly
as signed. This change interprets all UNIT_VOLTS FlySky telemetry
items as being signed 16-bit values so their display matches the
values displayed on stock FS-i6 and FS-i6X receivers.
Signed-off-by: Bryan Mayland <bmayland@capnbry.net>
* Use pwrCheck() as primary control point for shutdown, centralizes thread control in simpgmspace module;
* Remove main_thread_running in favor of separate variables for startup mode and shutdown flag;
* Don't start a thread for ARM startup, just run simuMain() directly (the thread just exits anyway);
* Refactor SIMU_SLEEP() macro, and remove all unnecessary uses of it, also remove SIMU_SLEEP_NORET;
* Add startType param to opentxStart() to control splash and startup checks;
* Fixes backlight never turning off in simulator with "SWITCH" power button type (pwrPressed() was always true);
* Fixes simu shutdown when model checklist is displayed at startup;
* Adds stubs to possibly simulate a "soft" power button in the future.
* Support new r9m firmwares
* More future proof, thx Kilrah
* (significant) typo
* Companion part
* Make support a compilation option
* Fix compilation for normal users
* Warning popup for usability tests
* Better implementation
* All sizes
* Cosmetics
* Flex is EU+/AU+ only
* [Companion] Handle "flexr9m" option in module settings UI (to match radio UI, including warning msg); Move some "toString" functions out of ModelPrinter into ModuleData/Multiprotocols; "Future-proof" available R9M power options based on "stdr9m" fw option; Fix missing "Hitec" MM protocol name; Fix printing of R9M-EU power level in ModelPrinter.
* Cosmetics
* Rename R9M flex option
* Move failsafe further back to prevent nav oddity