Commit Graph
9974 Commits
Author SHA1 Message Date
CliffandGitHub c7ca1cce0f feat(color): Labels Pgup/Down keys move up down selected label (#2288)
* (fw) Pgup/Down keys move up down selected labels

* Add Long press returns on single page radios

* Rem NV14 keys
2022-09-09 11:13:39 +10:00
David PHAM-VANandGitHub 155a854131 feat(lua): Add several Lua API funcs and constants (#2279)
* LUA: Add Bitmap.toMask and lcd.drawBitmapPattern functions

* LUA: Add lcd.invertRect function

* LUA: Add Bitmap.resize function

* LUA: Add getOutputValue function

* LUA: Add timer showElapsed configuration

* LUA: Add model extendedLimits configuration

* LUA: Add some global constants

* Add model jitterFilter configuration

* Add model.getSwashRing and setSwashRing functions
2022-09-08 20:03:58 +10:00
Malte LangermannandGitHub 8b7e8c3017 EL18 RF USB switch (#2221)
* feature: added ability to have radio specific menu items in the bootloader
* added enabling/disabling USB access to the RF module via the bootloader
* enable the internal module on EL18, when RF module USB access is enabled
* moved USB switch pin initialization to the NV14/EL18 specific code
* moved EL18 USB switch defines to boot_menu
* feat: added a symbol for RF USB switch menu option on EL18 bootloader
2022-09-08 08:20:49 +02:00
4e49ac68be feat(colorlcd): Special Function to set main screen (#2160)
* Special Function to set main screen (#2135)

* chore: Add new SF to LUA constants list

* Companion support

* Formatting

* get rid of magic number

* Add function to get the number of custom screens

* Change screen numbering from 0-based to 1-based.

* Allow SetScreen custom function for Color LCD only

* add range protection

* cleanup

* yet, range protection once again

* fix: paintSpecialFunctionLine can't alter SF param data

* Fix screen initialization in companion

* move screen switching to the UI

* Trigger view change from guiMain()

* chore: Change "SET" to "Set" for consistency

* fix: Somehow missed extra comma in `TW`

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-09-07 21:40:34 +10:00
CliffandGitHub b0c1315f61 fix(touch): Prevent multiple audio beeps (#2290)
This actually probably an underlying issue in the driver, why it's sending two TE_DOWN events and causing multiple beeps
However, this fix will hold until the touch driver interface is re-written
2022-09-07 21:39:00 +10:00
Raphael CoefficandGitHub 052a344611 Improve gyro/acc range and config (#2113) 2022-09-07 21:21:20 +10:00
David PHAM-VANandGitHub 4ed4f218b4 feat: Allow Lua widget translations (#2275) 2022-09-07 21:18:50 +10:00
3b2f07ae85 fix: Danish special characters on B&W radios (#2271)
* Dannish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* chore: Reset header to `copyright-header` template
`tools/copyright-header.txt` template is what should be used.
Also added line at EoF to make git happy

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-09-07 20:15:08 +10:00
eshifriandGitHub 5f4def2f91 fix: Changing label order for only two labels could trigger EM (#2273)
* Fix definition for signed value

* Support changing order of the labels for two labels

* Swap labels when there is only two due to std::rotate limitation

* Change the order with swap.

* Map rebuid added
2022-09-07 18:29:59 +10:00
dlktdrandPeter Feerick aec0639e66 (fw+cpn) libsim not loading models, set mod on new lbl 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 7825f8be74 (fw) Refresh models after rename 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 4067c6df07 (fw,cpn) Support commas in labels
Remove more cpn unused code
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick cd50c0a967 (fw) Remove new label from menu, rework layout 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 644cf4ba1d (fw) Properly set sort button status 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 1f9e93ba70 (fw) Add new label button 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 13bd3b11b7 (fw) Make new label a method
For future use Add a Label Button
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 9a481d6837 (fw) Better handling for blank Labels in labels.yml 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 098a5a0b59 (fw) Clear new label string on open 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 3de67be925 (fw) Fix: Update the title on new model 2022-09-06 21:04:10 +10:00
David PHAM-VANandPeter Feerick c103abb58b Fix 32 bits negative values YAML saving 2022-09-06 19:53:12 +10:00
Peter FeerickandPeter Feerick c1e8a54e59 fix: TLITE, TPRO and TX12 opp. B/G mapping to X7 2022-09-06 11:49:14 +10:00
Peter FeerickandPeter Feerick 12ecedc377 fix: TX12MK2 GPIOS were still wrong
5992a44 fixed these in part, but further testing shows
STATUS_LED GPIO mapping is same as TLITE/TPRO
2022-09-06 11:49:14 +10:00
Peter FeerickandPeter Feerick 845f9a8fc8 fix: Tweak use of green/red generally by radio 2022-09-06 11:49:14 +10:00
Peter FeerickandPeter Feerick 9abec7a8e7 fix: Set status LED init blue/green by radio 2022-09-06 11:49:14 +10:00
samyalikandPeter Feerick b5308b2c28 Add correct STATUS_LEDS definitions for RADIO_TPRO
I just wanted blue LEDs on my Jumper T-Pro. Instead I found a headache. 

PCBX7 STATUS_LED definitions were being used for RADIO_TPRO, resulting in incorrect GPIO pin assignments for GREEN and BLUE LED colors. LED_GREEN_GPIO_PIN would activate the blue LED, and vice versa for LED_BLUE_GPIO_PIN. 

To rectify this, a new definition for RADIO_TPRO has been created with proper GPIO pin assignments for LED_GREEN and LED_BLUE
2022-09-06 11:49:14 +10:00
b4e1ceb4f8 fix(MPM): Various UI elements for MPM opts weren't updating correctly (#2209)
* fix: Get current values for MPM options

* fix: Don't show sub-proto dropdown when empty

* Add suggested call to `update()`

* Add callback to refresh when subtype changed

* Trip `SetValueHandler` rather than setting value
Thank you to @raphaelcoeffic for the hint ;)

* fix: Saving values when changed is a good idea!

* Load option flags properly when using internal proto list

* NumberEdit fields don't implement LV_EVENT_VALUE_CHANGED, use update() instead

* Fix checkbox behaviour

* Fix autobind checkbox after switching away from DSM

* Fix more parameter needing update on MPM sub-proto changes

* fix: Also update servo rate if present

* fix: Channel mapping needs updating also

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-09-05 21:56:24 +10:00
Peter FeerickandPeter Feerick 07431c3432 chore: Bump libopenui 2022-09-05 19:27:50 +10:00
Raphael CoefficandPeter Feerick 8725ade854 fix: simu LCD buffer pointer init to properly display splash image 2022-09-05 19:27:50 +10:00
Raphael CoefficandPeter Feerick 0d3b2c027b splash: force pixel format to RGB565 when loading the bitmap 2022-09-05 19:27:50 +10:00
TheIsotopesandGitHub ba814db38a hotfix for german translation (#2265)
fixed typo made in #1374
2022-09-03 17:34:54 +02:00
HThurenandPeter Feerick f5cef9775a fix: Remove left over defines from untranslated.h
Removed #define TR_NEW, #define TR_NEW_LABEL, #define TR_RENAME_LABEL, #define TR_DELETE_LABEL, #define TR_ENTER_LABEL, #define TR_LABEL, #define TR_NONE, #define TR_CURRENT_MODEL, in untranslated.h, since also in the specific language files, fx. da.h. Give error when translate and the #define differ.
2022-09-03 22:01:41 +10:00
Peter FeerickandGitHub bce73a9398 feat(B&W): Lua tools list sorted alphabetically (#2258)
Resolves #1886
2022-09-03 09:01:46 +10:00
c8693569b0 feat(color): New label based Model Selector (#1374)
* Model Labels Selector

* Portrait Layout

* Receiver ID Check

* Fix Labels .yml format

* Companion Initial Commit

commit 967ddf3979b4954402fe62c858faba4b7a416bba
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:49:15 2022 -0700

    Fix Labels .yml format

commit 534221cad9e01146c47a9ac1080a655e04f1f6c8
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:20:57 2022 -0700

    Receiver ID Check

commit f32c0939d44e9ae60bc0705a9176354c23fec198
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sun Aug 28 23:13:25 2022 -0700

    Portrait Layout

commit 961181217c7841ff3f21299ac6aa419b810f80e9
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sat Dec 11 16:56:13 2021 -0800

    Model Labels Selector

commit dc99dd40d2
Author: David PHAM-VAN <1387855+DavBfr@users.noreply.github.com>
Date:   Fri Aug 26 03:04:34 2022 -0300

    feat: Allow Lua widget to override built-in widget with same name (#2208)

    * Allow CPP Widgets Override with LUA

    * Reset a widget option it the type differs

commit 4b747caff9
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Thu Aug 25 19:47:53 2022 -0700

    fix: Write model name into models.yml when duplicating model (#2224)

    * Update model name in the models.yml file (#2214)

    * Fix the length of the name.

commit e97f23a305
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Wed Aug 24 21:19:52 2022 -0700

    fix(cpn): Fix full path to model notes for Simulator (#2223)

* Correct Highlighted Column

* labels .yml indentation

* Update da.h

New defines translated to Danish

* Update dataconstants.h

Omit warnings due to difference of LEN_MODEL_FILENAME and LEN_MODEL_NAME in modellist.cpp

* Update modelslist.cpp

Wonder if this are the right file in PR #1374 (?), seems a lot are changed to the better in #1374

* Update dataconstants.h

Restore #define for LEN_MODEL_FILENAME to 16

* Rebase, Correct Issues

Delete now deletes instead of select
New model stores correct information
Duplicate save all information in cell
Rework items to use cell over button
Reword function variables

* CMPN: Add context menu

Fix output not functional. Removed Yaml::null at some point :)
Fix some compiler warnings

* CMPN: Compiler warning, replace ,->_ in list

* FW: Various Changes

Change view to a grid
Don't allow comma in label name
Add scroll indicators
Save sort order

Co-authored-by: HThuren <99370924+HThuren@users.noreply.github.com>
2022-09-03 09:01:19 +10:00
ulfhedlundandGitHub 20dc9c4d26 fix(B&W): Add characters for Swedish translations (#2259) 2022-09-02 18:10:05 +10:00
HThurenandGitHub c6b7aca5fa chore(translation): More updates to Danish 🇩🇰 (#2257) 2022-09-01 17:47:37 +10:00
Raphael Coeffic a79f00f675 fix(x9d): navigation in both directions using +/-
This issue was introduced in 62692dba6a.
2022-09-01 07:21:14 +02:00
Bryan MaylandandGitHub 8422640199 feat: Optionally support CRSF_VARIO in BARO_ALT telemetry 2022-08-31 21:38:27 +10:00
e576925bee feat: Reduce risk of corrupt radio.yml (#1481)
* reduce risk of corrupt radio.yml #1412

Adds CRC16 checksum to radio.yml when saved.
Adds save to temporary file, folowed by rename to radio.yml
Adds check on load, with fall-back to temporary file

* Made sure that only the first read block of radio.yml is checked for the 'checksum' value.
Added checksum generation on radio.yml produced by conversion.

* Added namespace.
Github actions triggered build failed on this - compiler difference.

* Fixed typo in code not run locally.

* Made checksum result code a enum class.
Fixed null-poionter dereference bug.

* Added check and handling for radio.yml file not read (will be handled as if checksum failed)
Added evaluation of checksum when radio_new.yml is read.
Added f_unlink() calls before f_rename() to ensure the target filename does not exist.

* Added radio.yml cheksum handling to Simulator/Companion.
Cleaned radio firmware handling of checksum field up to be newline agnostic.

* Added handling of files without checksum.
- Letting files pass the check if no checksum field is present (old files) and the size is realistic (25 bytes)

* Fixed bug causing new conversion from binary if no radio.yml BUT a radio_new.yaml
is present in the filesystem.

Now the conversion is only performed if neither file exsits.

* repair rebase problems

* rerun yaml generator

* fix another rebase problem

* update text in companion to be more meaningful when the radio.yml file has a checksum error
fix wrong error message in trace

* add trigger to check radio config when leavin menu_radio

* fix: add handling for temporary and error yaml radio settings files to simu/simulator/libsimulator

* fix corner cases when comverting non crc-ed files

* chore: Tweak radio data warnings for screen sizes
- Changed the define to be a little shorter
- Added missing define for TW
- Three string lengths to suit 128, 212 and basically colorlcd

Co-authored-by: gagarinlg <malte@langermann.net>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-08-31 12:56:17 +10:00
gagarinlgandRaphael Coeffic e6697bca89 fix: center splash screen 2022-08-29 07:09:04 +02:00
Raphael CoefficandRaphael Coeffic a7335be7ec Re-added vertical 0-line for mixer monitors 2022-08-28 13:07:03 +02:00
Raphael CoefficandRaphael Coeffic 8769f49fd7 Fix mixer monitor appearance after page switch back and forth 2022-08-28 13:07:03 +02:00
Raphael CoefficandRaphael Coeffic 731d1834e3 More compact views for inputs, mixers and outputs 2022-08-28 13:07:03 +02:00
Raphael CoefficandGitHub cd211cba59 feat(color): Better color picker (#2217)
* Better color picker

* Portrait layout

* Remove obsolete ColorEdit

* Fix label clipping

* chore: Bump libopenui
2022-08-28 19:01:55 +10:00
David PHAM-VANandGitHub dc99dd40d2 feat: Allow Lua widget to override built-in widget with same name (#2208)
* Allow CPP Widgets Override with LUA

* Reset a widget option it the type differs
2022-08-26 16:04:34 +10:00
eshifriandGitHub 4b747caff9 fix: Write model name into models.yml when duplicating model (#2224)
* Update model name in the models.yml file (#2214)

* Fix the length of the name.
2022-08-26 12:47:53 +10:00
eshifriandGitHub e97f23a305 fix(cpn): Fix full path to model notes for Simulator (#2223) 2022-08-25 14:19:52 +10:00
Raphael CoefficandPeter Feerick 3eaeb911e8 fix: set screen setup tab corresponding to current main view 2022-08-24 13:11:01 +10:00
Raphael CoefficandPeter Feerick 6b7b22e660 fix: save and load main view ID 2022-08-24 13:11:01 +10:00
Raphael CoefficandPeter Feerick 0e8f4e55b1 fix: custom curves corruption
Fixes #2204
2022-08-24 12:55:26 +10:00
HThurenandGitHub f9a59eff0d chore: More Danish translations for Companion and radio 🇩🇰 (#2225)
more translations
2022-08-24 12:46:41 +10:00