Added special UART4 init to sample if FlySky sticks are present or not.
Added boolean globalData.flyskygimbals to save the detection result.
Removed FLYSKY_HALL_STICKS and FLYSKY_HALL_STICKS_REVERSE CMake build options.
Tested on two RM TX16S radios, one with FlySky digital hall sticks and second with stock analog sticks.
* no more backlight off mode for color lcd radios
disable backlight input controls in radio setup screen, when they are not used by the selected backlight mode
force backlight on to be at least the brightness of backlight off
* do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON.
* Revert "do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON."
This reverts commit e153a8dc658d53f5420c912e7543d6d0a9fe6ed9.
* Trying to align LUA options with radio/src/CMakeLists.txt
-DLUA=NO: no Lua of any kind
-DLUA=ON: everything but mixer scripts
-DLUA=YES: also mixer scripts
* Color LCD with -DLUA=NO is probably a rare combination, so it needed a little help with #defines.
* Some strange error using floor function w/o <math> - probably because -DLUA=NO is not normally used w/ color.
This has the added benefit of precision increase and also avoiding unnecessary computation. Needed to change to uint32_t, as the jitter removal computation would otherwise go over the 16-bit range. As 16-bit computation can be left for "normal" sticks, added a special define just for FLYSKY_HALL_STICKS.
In addition this PR changes back the radio analogs diagnose page second column also for FlySky digital hall sticks to show +/- 100 again, as now with first and second column we already cover all internal ranges used.
Tested on RM TX16S with FlySky digital hall sticks.
Before write access is permitted to numerous DMA registers, need to make sure that DMA is disabled for the stream. Disabling the stream is not instantaneous, and needs to be waited for (previous transmissions need to be finished first).
Added return values to numerous functions to signal a failure.
* View text and code cleanup
* Typo fix
* Fixed case generation
* check list fixed
* Horizontal clipping fixed
* Lost letter fixed.
* Cleanup
* Unified implementation (Rotory button support)
* Fixed USB menu issue and RTN button.
* Rotary encoder acceleration implemented
* Do not close file on every line read
* Sliding window implemented. File size limitations practically removed.
* scrollbar implemented
* Cleanup & scroll bar adjustment
* Cleanup
* Smoother scrolling for long lines.
* Minor cleanup
* Flysky Hall Stick MOD using UART4 by disabling stick A/D.
* Fixed build error.
* Added Flysky hall stick mod in test targets.
* Changed ADC disable for Flysky hall sticks method.