Commit Graph
10349 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
Peter FeerickandPeter Feerick e51ffb110a Replacement icon masks thanks to @JimB40
Resolves #752
2021-09-21 09:01:17 +10: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 024934e637 Disable AFHDS3 on NV14 2021-09-19 16:17:47 +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 f7214862e4 Removed extra debug 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 b0147a43d0 Fixed telemetry 2021-09-19 16:17:47 +02:00
Raphael Coeffic 78d8d976b4 Fixed ifdefs 2021-09-19 16:17:47 +02:00
Raphael Coeffic c374e3369b Send pulses as well.... 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 0e12166786 Avoid circular header dependencies 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 c389000713 Enable pulses for AFHDS2A (avoids WDG reset) 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 CoefficandRaphael Coeffic 366290307a Fixed commit-tests 2021-09-19 14:08:13 +02:00
Raphael CoefficandRisto 68d9162cb4 Make FS hall sticks EXT3 EXT4 optional
As this breaks Companion model editing for now (see issue #758).
2021-09-19 13:49: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
Raphael Coeffic ccc83b9d2e Set the record straight on GHST channels 2021-09-18 13:03:51 +02:00
Raphael Coeffic b5da0e164c Add GHST and SBUS to the list of protos with fixed # channels
The end-channel is thus non-editable.
2021-09-18 12:52:03 +02: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 CoefficandPeter Feerick fd1f6d2f3d [nv14] Fix translation strings used
Strings defined for "x" (shortest) are mostly defined if "LCD_W < 212", which is not the case for the NV14, thus leading to faulty static strings (see TR_VFSWRESET in en.h.txt translation for example).
2021-09-18 19:21:06 +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
Raphael CoefficandPeter Feerick f401cd4a12 [color] use own protocol counter
Overloading the frame counter causes aa race condition with the UI thread (see SEND_FAILSAFE_1S()).
2021-09-18 11:57:23 +10: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 e312298e52 Fix as per review 2021-09-17 18:21:30 +12: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
rotormanandPeter Feerick de680aea3f Changed to https://edgetx.org/ w/o dash 2021-09-17 09:43:58 +10:00
RistoandGitHub 8986d0a5dc Merge pull request #743 from EdgeTX/EX3_EX4_Bugfix
Fixes EX3 and EX4 bug caused by myself
2021-09-16 16:46:59 +02:00
Raphael CoefficandGitHub a70754a69f Merge pull request #742 from EdgeTX/cpn-wo-arm-gcc
Compile companion without arm-gcc toolchain
2021-09-16 16:42:53 +02:00
Raphael Coeffic e02d234f07 Remove "bootloader" and "simu" targets from "all" 2021-09-16 13:50:46 +02:00
RistoandGitHub 8b4a11de96 Fixes EX3 and EX4 bug caused by myself 2021-09-16 13:20:20 +02:00
Raphael Coeffic a17a02c541 Compute SDKROOT and use it 2021-09-16 12:05:41 +02:00
Raphael Coeffic 28dc161337 PoC: compile companion macOS without arm-gcc toolchain 2021-09-16 11:23:55 +02:00
Raphael Coeffic cfdee7f0e6 [color] properly filter sources in drop-downs
Resolves #731
2021-09-16 09:03:17 +02:00
Raphael Coeffic 24292d83aa [color] fixed module index to fetch protolist on internal module enable 2021-09-16 08:49:44 +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
Cliff f5b75dd9f4 Invert PPM polarity 2021-09-14 20:40:48 -07:00