Commit Graph
3764 Commits
Author SHA1 Message Date
rotormanandRisto 9570f8595a Removed FlySky digital hall gimbal double value conversion (first using the FlySky factory calibration values min,mid and max to convert to 0 to 4095 and second to convert this value again into EdgeTX internal 11-bit range 0 to 2047).
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.
2021-09-21 08:11:26 +02:00
Raphael CoefficandPeter Feerick 64a87812bb [color] do not use setValue() in SourceChoice / SwitchChoice
This potentially deletes the source/switch choice, which then triggers a "use-after-free".

Resolves #759
2021-09-20 11:04:11 +10:00
Raphael Coeffic 571465668f Fixed ifdefs for AFHDS2A & AFHDS3 2021-09-19 16:26:10 +02:00
Raphael Coeffic bc2a0810bd AFHDS2A is not available for external modules 2021-09-19 16:17:47 +02:00
Raphael Coeffic 4a79480e5e Prevent AFHDS2A from being used as an external module
The pulses code for that module does not support it.
2021-09-19 16:17:47 +02:00
Raphael Coeffic 5e091faba4 Fixed ifdefs 2021-09-19 16:17:47 +02:00
Raphael Coeffic e0a8b3d8c3 Added RX options (PWM/PPM, iBUS/SBUS) 2021-09-19 16:17:47 +02:00
Raphael Coeffic 7e3b06bffd Disable range checking mode on AFHDS2A modules (does not work) 2021-09-19 16:17:47 +02:00
Raphael Coeffic f7af8f1e98 Force set AFHDS2A subType on NV14 2021-09-19 16:17:47 +02:00
Raphael Coeffic 78d8d976b4 Fixed ifdefs 2021-09-19 16:17:47 +02:00
Raphael Coeffic 8d46737e56 Remove useless setFlyskyState()
This is already done in resetPulsesAFHDS2()
2021-09-19 16:17:47 +02:00
Raphael Coeffic e29138f7e3 Draft support internal module NV14 2021-09-19 16:17:47 +02:00
Raphael Coeffic e90c300bf4 Clean-up / renaming MODULE_TYPE_AFHDS3 to MODULE_TYPE_FLYSKY 2021-09-19 16:17:47 +02:00
Raphael CoefficandGitHub 4c1af2bf36 Merge pull request #755 from EdgeTX/fix-299
Fix max # channels and default channel range
2021-09-18 14:13:48 +02:00
CliffandGitHub 3dedcad75a Category editor (#725)
* Allow model moving between categories

* Initial Commit - Categories Editor

* Don't allow move of active models & save

* Create group for categories, add, remove, delete working.

One glitch on add still...

* allow index choice on tabs page build

* Don't allow setting name null

* Change layout

* Null terminate string + save

* Optionally hide delete button

* Allow add a new model on touch if there are none

* Remove seperator

* Fix compiler warning

* Assign not compare

* Add Translation Strings for Model Categories and Models

* Use translated strings

* Update libopenui

* Add extra newline so scrolls proper

* Update libopenui
2021-09-18 21:21:57 +10:00
Peter FeerickandGitHub 47dac14b2f Add codename define, update radio version screens and tweak companion (#747)
* Add codename deffine and update all radio version screens

* Move string, make const and formatting

* Missed parentheses around version number

* Add codename to Companion

* Replace edge-tx.org with edgetx.org

* Change EdgeTX website http links to https
Also consistent URL

* Update copyright string
Leave second version for future years
2021-09-18 20:35:31 +10:00
Raphael Coeffic 9b63f75e1d Fix max # channels and default channel range
Resolves #299
2021-09-18 10:43:55 +02:00
Raphael CoefficandGitHub 734721d824 Merge pull request #746 from pkendall64/fix-baud-rate-defaults
Fix baud rate defaults
2021-09-18 07:12:00 +02:00
eshifriandGitHub 514796fa51 Support input scaling and show telemetry source values (#745)
* support scale for telemetry sensors
* remove clipRectangle
2021-09-17 20:22:54 +10:00
Raphael Coeffic c2588efbca Prevent proto list to be fetched when started in anything but "normal" mode 2021-09-17 11:15:33 +02:00
Peter FeerickandRaphael Coeffic 4d71f04dbe Update header 2021-09-17 10:44:24 +02:00
Peter FeerickandRaphael Coeffic 5cb1278cb3 Never leave MPM mode set to SPECTRUM_ANALYSER 2021-09-17 10:44:24 +02:00
Peter FeerickandRaphael Coeffic a5a54b6ce7 Proper close handler and track MPM state properly 2021-09-17 10:44:24 +02:00
Peter FeerickandRaphael Coeffic 0311c65dda Trigger stop function on press of RTN 2021-09-17 10:44:24 +02:00
Paul Kendall 994c739b57 Fix baud rate defaults
Default value 0 is 400k baud, unless SPORT_MAX_BAUDRATE < 400000 in which case default value 0 is 115k baud.
2021-09-17 12:20:43 +12:00
Raphael Coeffic cfdee7f0e6 [color] properly filter sources in drop-downs
Resolves #731
2021-09-16 09:03:17 +02:00
RistoandGitHub 8620fe1928 Merge pull request #721 from dlktdr/trainer_channels
Slave/Jack - more channels, Bluetooth/Slave bug fix
2021-09-15 07:59:33 +02:00
CliffandGitHub 0dac6037ae Trainer calibration button (#716)
* Calibrate all at once with button, number boxes just show data
* Switch r/o numberedit to statictext
2021-09-15 11:58:16 +10:00
Peter FeerickandGitHub 70ccca3dfa Merge pull request #726 from EdgeTX/fix-722
Call GV_IS_GV_VALUE() without offset applied
2021-09-15 11:36:09 +10:00
Peter Feerick be9bdfd585 Call GV_IS_GV_VALUE() without offset applied 2021-09-15 09:37:41 +10:00
RistoandGitHub 1eed24cdb6 Fix battery bar position (sign error) 2021-09-14 21:14:41 +02:00
RistoandGitHub 2e9d9357bc Version bump 2021-09-14 15:22:16 +02:00
Raphael Coeffic ff0abf11a5 Call GV_IS_GV_VALUE() without offset applied
Resolves #722
2021-09-14 10:38:24 +02:00
Cliff a7dafd2d09 Fix bug if switch from other mode back to BT channel count is wrong 2021-09-13 19:38:28 -07:00
Cliff cd5feefde9 Remove magic numbers 2021-09-13 19:37:20 -07:00
Cliff 0932636bea Allow PPM Slave/jack trainer limits set in dataconstants.h 2021-09-13 19:36:37 -07:00
Raphael Coeffic a632d341bc Do not access hall stick raw array on SIMU 2021-09-13 15:11:31 +02:00
rotormanandRaphael Coeffic cabf7f6155 Show raw value in first column, also in decimal; pre-processed value in second column. 2021-09-13 14:42:02 +02:00
rotormanandRaphael Coeffic 1737a52d7e Must supply full path for NV14 build to find the header. 2021-09-13 14:42:02 +02:00
rotormanandRaphael Coeffic 4af5adecef Show true raw input value on radio analogs diagnose screen for FlySky hall gimbals (signed short). 2021-09-13 14:42:02 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
8f8374f3b9 Move sourcechoice and switchchoice to ChoiceEx implementation (#691)
* move sourcechoice and switchchoice to ChoiceEx implementation

* removed getTicks parameter from ChoiceEx.  Turns out it can just access timer directly

* clean up keyboard support for topbar.cpp, protect against crash in keyboard

* Switch back to edgetx libpenui and sync

* Formatting

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-13 17:09:13 +10:00
Raphael CoefficandGitHub 9bb08c2c1f Merge pull request #705 from EdgeTX/mpm-proto-list2
[color] Dynamic MPM proto list
2021-09-13 08:35:47 +02:00
542213de11 Add Bluetooth Trainer Options in Model Setup (#686)
* Initial Commit, Bluetooth Trainer options

* MasterBt & Slave working

* Cleanup BT Trainer

* Add extra defines so still works bluetooth disabled

* Add long string for not connected

* Make btMenu popup global

Also fixes not disconnecting if switches from master <-> slave bluetooth.

* Update libopenui

* Remove Global popup, add checks to if pop-up open

* Add subclass with an popup-opened bool

* Refresh GUI on BT mode change, except if pop-up open

* Don't update if OSK open

* Autoformatting

* Make trainer bottom spacer apply to all touch scns

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-13 12:00:14 +10:00
eshifriandGitHub f85ab455ed Outputs - enable using GV for Subtrim, Min, Max values (#687)
* Model Outputs - GV for Subtrim, Min, Max values #683

* fix scaling

* fix limits

* invalidate limits

* formatting

* defines added
2021-09-13 09:13:50 +10:00
Peter FeerickandGitHub e5b5c41253 Merge pull request #707 from jfrickmann/LuaWidgets
Add lcd.exitFullScreen(), removed full screen message
2021-09-12 10:57:26 +10:00
884bcec13c Allow selecting higher baud rates (#640)
* higher baud rates

* Update colorlcd models to support selectable baud tp 3.75M

# Conflicts:
#	radio/src/gui/colorlcd/radio_hardware.cpp

Co-authored-by: Jye <JyeSmith@users.noreply.github.com>
Co-authored-by: Paul Kendall <pkendall64@gmail.com>
2021-09-12 06:46:43 +10:00
jfrickmann c20fd74b3c Removed full screen message "Press [RTN] long to exit" 2021-09-11 08:35:21 -04:00
Raphael Coeffic 66066181fc Improved progress bar label 2021-09-11 11:33:03 +02:00
Raphael Coeffic ba906e1d5d [color] Dynamic MPM proto list 2021-09-11 11:10:00 +02:00
jfrickmann cf67a5c10b Double tap to enter fullscreen mode and slow tap to open widget menu 2021-09-10 17:13:25 -04:00