Commit Graph
167 Commits
Author SHA1 Message Date
philmozandGitHub 5327c890f2 feat: Add options to disable radio and model menu tabs (#3484)
* Add options to disable radio and model menu tabs.
- Update radio and model data structs
- UI for color LCD radios
- Convert existing 'noGlobalFunctions' property.
- Language strings.

* Make 'theme' control specific to color LCD radios.

* Add B&W radio UI.

* Simplify code, reduce compiled code size.
Fix page count display on model select tab.
Fix GVARS for 212x64 radios.

* Collapse timer sections if timer is off.

* Remove 'Use global functions' checkbox from B&W model setup.

* Make preflight checks, throttle and view options sections expand & collapse (default collapsed).

* Fix build.

* Add view options to companion data classes, save and load values in YAML files.
Fix scrolling for radio setup view options.

* Add Companion UI for view option settings.

* Remove 'Mixes' from list of tabs that can be hidden.

* Updated Companion UI from elecpower.

* Use view options flags to enable/disable functionality:
- skip heli mixer logic if heli not enabled
- Remove heli, gvars and telemetry options from source selection if not enabled

* Remove 'flight mode', 'curve' and 'global variable' settings from input & mix editors if option disabled.

* Rename 'View Options' to 'Enabled Features'.
Put GVAR option under Flight Mode and indent text.
Make relationship between FM and GV more obvious.

* Remove global variable option dependency on flight modes.
Hide FM1-FM8 in global variables if flight modes hidden.

* Hide 'Custom Mixer Scripts' in source selection menu popup if disabled.

* Add translation strings for Hebrew language file.

* Fix typo. Add comment for double call to setCurrentTab.
2023-05-22 20:08:16 +10:00
philmozandGitHub fc1d6ba3a0 fix: Change mixer output value calculation to 'round away from 0' instead 'floor' (#3292) 2023-03-19 16:01:27 +10:00
Raphael CoefficandGitHub 72193eda82 chore: New module/serial API (#3055)
* WiP: new module interface

* WiP: softserial timer DMA

* WiP: setup() and send() in one step

and remove methods specific to internal or external module

* fixes and extra port config

* horus targets

* module ports have moved

* T8 support (only internal module)

* fix nv14

* stupid GCC....

* disable BT

* remove nv14 telem driver

* remove old aux serial driver

* Move module buffers out of pulses.h

* Soft serial fixes and PXX1 support

* Fixed PPM module output

* Fixed CLI

* compilation fixes

* Ported bluetooth and flysky gimbal to new serial driver

* Re-enable soft-serial RX

* fixes and cleanup

* nv14 fixes

* Fix flysky gimbals

* Ghost module

* 16 bytes of RAM

* Remove getByte from module API

* Ghost cleanup

* fix: _half_duplex_input() must be called after usart init

* WiP

* more cleanup

* Remove board specific settings from PXX1 / PXX2 drivers

* A bit of PXX2 header cleanup

* Add support for OVER8 and ONEBIT

* Add some support for inverters (NV14 / EL18)

* Support NV14 power fixes in generic board

* Fix polarity handling

* Fix RX DMA

* Fix mixer not running

* Add soft-serial polarity control

* Quick fix for telemetry polling while module port is changed

* Fix bootloader DEBUG

* Fix MPM telemetry

* Fix pulse start

* DSM2 soft-serial fallback

* DSMP async module restart

* Fix CRSF LUA upstream

* Remove global variable telemetryProtocol

* Use HAL/LL constants

* Fix various issue with AFHDS3 and NV14/EL18 internal module

* Fixed S.PORT unit tests

* fix: update widx after writing at current index

* fix: init error condition

* Fix: possible infinite loop in _find_port()

* Add support for bidir S.PORT init

* Add support for "getLastByte" in HW serial driver

* PXX1: Add support for S.PORT based on IDLE callback

* Fix rebase error

* Fix softserial _rx_fifo_push()

* Add softserial support for waitForTxCompleted()

* Fix MPM flashing (internal / external)

* Fixed external MPM

* Activate RX DMA on internal module

Seems to work with serial passthrough without issues, at least on the L3R PRO.

* Fix softserial DMA on stdlcd F4 targets

* Add softserial support for 32bit timers (mostly TIM2)

* More precise soft-serial

* Fix MPM update using inverters & HW uart

* Raise S.PORT DMA/USART IRQ prio to achieve faster switching to input

* Remove useless delays

* Fix flashing external ELRS module

* Added a retry mechanism for FrSky S.PORT update

* Remove useless enableRx()

* External FrSky modules are all flashed via S.PORT

* Remove power management unit update

This was only used on the first batch of X-lite.
2023-02-09 19:44:32 +10:00
3djcandGitHub 8ee73a5800 fix(lua): Remove faulty carryTrim, replace with trimSource (#2995)
* Fix carryTrim in LUA

* Remove carryTrim
2023-01-15 11:54:57 +10:00
Raphael CoefficandGitHub 6cc393cef5 fix(gf): reset global function context if disabled (#2578)
Fixes #2577
2022-10-17 12:14:27 +10:00
Jesper FrickmannandGitHub 83fbf1a7f8 feat(lua): Add getSourceValue (#2316)
* Moved getFieldInfo and getValue up right after related functions

* Modified getValue to return a valid status, so Lua can see if it got zero because of invalid source id

* Added new getSourceValue Lua function per Issue #781
Also added alias getSourceInfo for getFieldInfo

* Updated according to comment https://github.com/EdgeTX/edgetx/pull/2175#issuecomment-1245605114

* Replaced isFresh() by !isOld() as requested in https://github.com/EdgeTX/edgetx/pull/2316#issuecomment-1246759370

* Clean up `lua_pushtablenil` - tables cannot hold nil values

* Changed isFresh() to !isOld() ... AGAIN

* Return both `!isOld()` and `isFresh()`

* Return nil for all values if the item does not exist

* Return 0 instead of pushing three nil values

* Update documentation
2022-09-28 09:42:16 +10:00
RistoGitHubNiel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
9dc4065525 feat: Add support for SpaceMouse mod (6D input knob) (#1853)
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets.
Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
2022-09-18 09:23:48 +02:00
Raphael CoefficandRaphael Coeffic 0b8d93ca88 WiP: support for LSM6DSxx 2022-06-25 16:09:04 +02:00
d9b51f8ecf feat: Deadzone option for NV14 sticks (#1777)
Imported from open-flysky/Flysky-OpenTX-Test-Branch

* companion: Don't nuke `stickDeadZone` setting

* Implement data storage properly

* Add missing check for NV14 storage struct sizes

* Formatting

* Use one less byte in the packed data struct
Thanks @raphaelcoeffic :)

* Move setting of stickDeadZone default

* Use a Choice combo rather than NumberEdit

* Good riddance magic number

* Also set default stick zone if setting is missing

* Teach tests about `STICK_DEAD_ZONE`

* Tweak choice width

* Cpn NV14 add stick dead zone to hardware and section labels

* Cpn NV14 align default pot names to radio

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-04-06 10:30:20 +10:00
3djcandRaphael Coeffic d31482c18b Introduce T-pro and function switches handling 2021-12-17 17:07:48 +01:00
Raphael Coeffic 397674021e Improved logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic 69c017091a More stringified values 2021-11-10 11:07:01 +01:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
eshifriandGitHub c1cd083476 allow mixes without source (#665) 2021-09-03 19:05:54 +10:00
3djcand3djc 6aa465a3f8 fix crosstrims trim reset 2020-12-06 11:48:06 +01:00
3djcand3djc c76663d5ad patch throttle trim 2020-12-06 11:45:40 +01:00
Bertrand Songis 42a3198568 Merge with latest 2.3 2020-10-07 21:01:45 +02:00
DanielGeAandGitHub 78ccc22eac Throttle trim - Fixes 5635 (#7677)
Add throttle trim switch
2020-10-04 09:46:47 +02:00
DanielGeAandGitHub 035cc6c031 Brightness adjust from backlight function (#7680)
Adjust brightness from backlight function
2020-07-31 17:06:11 +02:00
Bertrand Songis 71ec1db9f6 Merge with latest 2.3 2020-06-18 11:14:07 +02:00
DanielGeAandGitHub fca11fc6b6 Fix mixer overflow (#7747) 2020-06-17 15:55:42 +02:00
Bertrand Songis 60e1edc159 Fixes #7734 2020-06-14 18:46:28 +02:00
Bertrand Songis db8da58453 Cosmetics 2020-06-07 23:00:28 +02:00
DanielGeAandGitHub 9aa9f36b5d Add dinamic bit shift for flight modes fading (#7690) 2020-06-07 22:59:05 +02:00
Bertrand Songis bddccb9765 Merge with latest 2.3 2020-05-30 11:57:03 +02:00
Bertrand SongisandGitHub d90ac28cc1 Refactoring to have globals splitted from opentx.h for easier includes (#7511) 2020-04-11 13:18:57 +02:00
Niccolò MaggioniandGitHub a5f760e823 Prevent center beep at boot (#7432) 2020-03-27 10:29:20 +01:00
Bertrand Songis 4c484017a4 Merge from 2.3 2019-12-05 09:29:11 +01:00
Bertrand Songis bc9cd3fba9 New Table widget 2019-11-28 17:03:57 +01:00
Bertrand SongisandGitHub c0a94505b6 Issue with function "Trainer Chans" (#7104)
TRAINER(Channels) had a 50% weight
2019-11-20 21:10:30 +01:00
Bertrand Songis 071116afeb Merge with latest 2.3 2019-11-07 15:04:45 +01:00
Bertrand SongisandGitHub 1b35f2bd35 Trainer function can now replace the channels values instead of to the sticks positions (#6561) 2019-10-24 12:03:19 +02:00
Bertrand Songis e2f84b8047 Cosmetics 2019-10-19 13:03:08 +02:00
Raphael Coefficand3djc 0bc7135e40 Disable trainer signal based input when trainer signal is lost (#6905)
* Disable trainer signal based input when trainer signal is lost

* Cosmetics
2019-10-09 18:22:23 +02:00
Kilrah 16ace5cb57 Merge branch '2.3.1' into 2.3 2019-10-07 18:13:19 +02:00
Bertrand Songis f78dbafa17 [X9D] P3 fix 2019-10-07 12:40:11 +02:00
Bertrand Songis 3e2cb83991 Now uses the external libopenui 2019-10-02 14:41:52 +02:00
Kilrah 20f87078aa Merge branch '2.3.0' into 2.3 2019-09-24 09:39:33 +02:00
Bertrand Songis 602a6a1f5d Cosmetics 2019-09-23 10:16:32 +02:00
Bertrand Songis 9e83c5d10f Merge against latest 2.3 2019-09-17 13:28:42 +02:00
Bertrand Songis 2bc42d9ecb 128 bytes RAM saved 2019-09-13 08:21:35 +02:00
Bertrand Songis f4f8893ae9 New UI merged 2019-08-28 20:50:14 +02:00
Bertrand Songis 34cfcc3fe4 Cosmetics 2019-06-01 15:51:50 +02:00
Bertrand Songis c28210e3e4 Rotary encoder refactoring 2019-04-30 14:55:21 +02:00
Bertrand Songis 73fa1c59b1 Gyro scaled output result not needed in RAM 2019-04-05 15:28:44 +02:00
3djc d775a91545 Add gyro settings computations 2019-04-04 10:43:43 +02:00
Bertrand Songis 01bf3d2ef6 Compilation fixes 2019-04-03 08:07:05 +02:00
Bertrand Songis a13ee14bbb [X-LiteS] Gyro added 2019-04-02 20:12:50 +02:00
Bertrand Songis cb6ee5e0b0 Compilation fixes on all boards 2019-03-15 12:24:22 +01:00
Bertrand Songis ed91931184 More AVR removal 2018-08-05 13:12:51 +02:00