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.
* Add theme editor
- added theme editing support to radio
- color editing controls
- split screen into browser and editor
- removed dead code from coloreditor,
- new radio theme editing icon
* Resolve compile error & merge cleanup
* 1. fix exit key press in ThemeEditor. It was not exiting screen
2. added ability to touch PageButton() on ColorEditPage()
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Preliminary trims as keys for lua
Largely based on open-flysky implementation
* Add `isLuaStandaloneRunning()`
* Add more virtual events
* Tweak virtual events further
* Finish remapping keys to virtual events
* Move some virtuals to right trim hat
* Add missing "defined"
* Revert to common EVT_VIRTUAL_MENU mapping
* Make keys/trims reset backlight like other radios
Please note that this requires the S.PORT connection to the internal ISRM to be cut, as it would otherwise be pulled low by the ISRM (without using it otherwise).
* added a new special function to disable the touch screen
* Bump libopenui
* Don't try to disable touch if no hardware touch
* Disable processing of SF if no touch hardware
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Removed all "Basic color definitions" except BLACK and WHITE in colors.h
Please ref. discussion on Discord: https://discord.com/channels/839849772864503828/839856795781431317/895858311579181066
* Removed theme color from the bootloader and replaced by RGB() like for e.g. green.
* Wrong color in Value widget default background color; should be white, not black
* Port from NV14 repository
* Fix altimeter
* Change AFHDS2A default mode to PWM and iBUS
* Fix datacopy.cpp generation for NV14 Windows build
* Cleanup
* Format
* typo fix
* Sngl for alarm and temperature sensor
* remove temperature sensor
This prevents the USART TC IRQ handler to trigger right after the DMA request has completed, and thus turning the output OFF before the last byte has been transmitted.
Resolves#801
This allows for the timeout checks in I2C code to work properly as they are based on SysTick IRQ, which is started by FreeRTOS when the scheduler is started.
Resolves#803
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.