Commit Graph
9193 Commits
Author SHA1 Message Date
7928e5bc20 [NV14] Add range check button and power level choice (#857)
* add range and high power to MV14

* remove spaces

* fix compilation

* compilation fix 2

* Whitespace cleanup and placate git

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-13 16:45:52 +11:00
Jesper FrickmannandGitHub d3ab7f9c61 Fix LUA=NO, remove ModelMixerScriptsPage when support not enabled (#869)
* 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.
2021-10-11 10:37:06 +11:00
Peter FeerickandPeter Feerick 7d215dd809 Disable MixerScriptsPage if both required flags are not set (#879)
* Disable MixerScriptsPage for 2.5 release builds
Since it doesn't work anyway without LUA=Y

* Only enable tab when both flags set
2021-10-07 19:35:54 +10:00
Peter Feerick 8bb10178d9 Change from PRIMARY2 to PRIMARY1 2021-10-07 18:22:33 +10:00
Peter FeerickandPeter Feerick 2d75eafc4d Make dialog big enough for five option widgets 2021-10-07 10:39:53 +11:00
kkoenig1@optonline.comandPeter Feerick 2c7e175b56 fix comments in yml theme files 2021-10-07 10:38:38 +11:00
kkoenig1@optonline.comandRisto ab9d026f17 fixed case insensitive compare 2021-10-06 16:16:44 +02:00
Peter FeerickandGitHub 088051f3bb Use B&W for poweroff animation (#862)
* Use theme color for poweroff

* Also set animation color

* Changed to black bg, white animation
Per @JimB40 direction 😁
2021-10-06 22:45:33 +11:00
Peter FeerickandGitHub 247d2b0fd8 Statistics page theming + ENTER fix (#872)
* Statistics screen theming
Basically none of the text was using theme colours.

* Formatting

* Use COLOR_THEME_PRIMARY2 for prefixes

* Remove NO_FOCUS stopping reset button from working
Fixes #841
2021-10-06 22:14:49 +11:00
Raphael CoefficandPeter Feerick 03188cd333 [t18/tx18s] add some delay after turning the internal module on
This allows to avoid power supply instabilities.

Resolves #802
2021-10-06 20:21:12 +11:00
Raphael CoefficandPeter Feerick c4dd1c78a0 [nv14] Boot issue fixes
Fixed:
- delay shortened.
- adjusted priority of IRQs used before FreeRTOS is started.

Resolves #863
2021-10-06 16:45:55 +11:00
jfrickmannandPeter Feerick b316a11bba Per discussion on Discord
https://discord.com/channels/839849772864503828/842693696629899274/894878085210574889
2021-10-06 11:42:05 +11:00
f970ab1e66 Fix Lua Mixer Scripts source naming (#842)
* getSourceString() return a correct string for lcdcolor when the source
es a LUA script

* getSourceString() return a formated string with instanceName or
scriptName and outputName

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-05 21:30:20 +11:00
Raphael CoefficandRisto 155d55dff8 Theme manager: fix paths 2021-10-04 18:51:55 +02:00
rotorman cf7cf79dc3 Compile fix 2021-10-04 16:40:45 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
9cb6d73947 Implementation of Theme Switching and Persistence (#839)
* initial support for color theming using yml files in the THEME directory

* initial theming support using yml files (without yml support)

* fixed issues with themes actually working on radio.

* fix another issue with drive access

* more theme changes.  Added author, and info to display.  Also display an image of  the theme if it is present.

* theme files now support both RGB() and 0x syntax

* quick fix for possible variable overflow.

* more tweaks after JimB tested

* fixed layout issues with NV14 and also added word wrap correctly.

* added edgetx headers to new string functions.

* Whitespace / unused code cleanup

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-04 23:27:08 +11:00
Raphael CoefficandPeter Feerick ba03d02b7a Fixes a race condition on proto list class init between UI and mixer task 2021-10-04 21:52:08 +11:00
Raphael CoefficandPeter Feerick 6684489f01 [colorlcd] make malloc() thread-safe 2021-10-04 21:52:08 +11:00
eshifriandPeter Feerick 6c74af974c When changing widget go directly widget settings 2021-10-04 21:51:47 +11:00
eshifriandPeter Feerick 0cbb14bc11 Increase exit button on the widgets setup page 2021-10-03 12:00:00 +11:00
rotorman 78489a69c0 Removed obsolete CooCox CoOS. 2021-10-02 15:05:21 +02: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
Bryan MaylandandPeter Feerick a04a56c0e7 Reduce USB polling interval for joystick mode from 10ms to 1ms 2021-10-01 11:16:43 +10:00
Bryan MaylandandPeter Feerick 31cb282dd2 Stop using 50ms mixer period when no module enabled
Also adds a 2ms mixer period if internal and external modules are stopped
but joystick mode is active
2021-10-01 11:16:43 +10:00
Raphael CoefficandPeter Feerick 4258684248 Simu: Adjust RTC according to local time on start 2021-10-01 10:50:39 +10:00
Peter Feerick 36ec9356f3 Fix DE and ES translation compilation errors 2021-09-30 22:49:33 +10:00
Peter FeerickandRaphael Coeffic 0e71cb180d Make 'back' hitbox bigger for touch 2021-09-29 19:12:37 +02:00
Raphael CoefficandRaphael Coeffic bb4eedd073 [bw] set multi binding mode only if multimodule 2021-09-29 19:08:17 +02:00
Raphael Coeffic bf00ad22f6 Fix crash in simu caused by uninitialised pointer if f_opendir() returns an error 2021-09-29 17:20:48 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
2f65ec4c58 Lots of color fixes and screen enhancements (#833)
* consolidated all color fixes and screen enhancements into one new branch

* Bump libopenui

* enhanced telementry sensor display

* fix discover and add sensor buttons on NV14.

* changed quick menu to not use theme colors as per JimB.  Fixed telemetry buttons for NV14

* fix colors on trainer page

* Merge cleanup

* Update libopenui

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-29 22:27:11 +10:00
Peter FeerickandPeter Feerick c0f792c392 Use correct index on 128 B&W radios for MPM status
Fixes #656
2021-09-29 09:12:44 +10:00
Raphael CoefficandRaphael Coeffic 742336450e [color] Fix subType editing & set default channel start + range on change
Resolves #567
2021-09-27 12:24:44 +02:00
Raphael CoefficandRaphael Coeffic 07d0a66368 telemetry driver: clear TC flag before re-enabling TC interrupt
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
2021-09-27 11:05:27 +02:00
Peter FeerickandPeter Feerick 182bc2355e Fix NV14 Flysky receiver voltage and signal labels 2021-09-26 19:08:55 +10:00
Raphael CoefficandRaphael Coeffic 08b3507d18 [MPM] Sanitized static protocol definition pointer checks 2021-09-26 11:07:57 +02:00
Raphael CoefficandRaphael Coeffic 004989ea57 [color] Move touch panel init to UI task
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
2021-09-26 10:29:39 +02:00
a4af85ef37 Fix module and trainer subform resizing and show NV14 RF module version (#800)
* Fixes #792
* Add RF module FW version
* Clean(er) implementation
* Whitespace changes cleanup
* Cleanup
* Trainer module fix

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-25 11:42:52 +10:00
Peter Feerick ecbe89c0f4 Update libopenui - Fixes #767 2021-09-24 19:35:59 +10:00
Peter FeerickandGitHub 580b9b12bc Add missing audio/haptic when set custom failsafe
Fixes #799
2021-09-23 21:11:34 +10:00
Raphael Coeffic b06cbe92bf Fix define for AFHDS2
Resolves #791
2021-09-22 09:58:16 +02:00
Raphael CoefficandGitHub 4907ebbf14 Merge pull request #728 from EdgeTX/nv14-internal-module
Nv14 internal module
2021-09-21 08:18:47 +02:00
Peter FeerickandPeter Feerick 482d00d99d Fixes only one column of models
Resolves #636
2021-09-21 16:18:20 +10:00
Peter FeerickandPeter Feerick b62e8c342d Version string on NV14 had unecessary indent 2021-09-21 16:18:20 +10:00
rotormanandRisto 89965ed5b2 Use 32-bit int always. 2021-09-21 08:11:26 +02:00
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