Commit Graph
18124 Commits
Author SHA1 Message Date
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
elecpowerandPeter Feerick 8aa2b55c50 fix(cpn): Improve module and protocol conversion (#2237) 2022-09-01 20:56:59 +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
Peter FeerickandPeter Feerick e038e4d214 fix: Change comment to reflect Mark II board 2022-08-27 19:03:05 +10:00
elecpowerandPeter Feerick f77d4d42bc Fix missing return 2022-08-27 19:03:05 +10:00
elecpowerandPeter Feerick a3bcf54cb6 Fix yaml writing pots and sliders 2022-08-27 19:03:05 +10:00
Peter FeerickandPeter Feerick 6c31b395e9 chore(cpn): Build TX12MK2 simulator 2022-08-27 19:03:05 +10:00
Peter FeerickandPeter Feerick 9cbb3cb2a8 feat(cpn): Initial TX12MK2 support 2022-08-27 19:03:05 +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
Raphael CoefficandPeter Feerick df1a146977 chore: make NOHELI the default 2022-08-23 20:37:06 +10:00
Raphael CoefficandPeter Feerick 2dee0e7b68 fix(cpn): revert macOS runner to Python 3.9 2022-08-23 20:33:41 +10:00
Peter Feerick fc7e57ef14 chore: Add to manifest in alphabetical order! 2022-08-23 16:07:32 +10:00
Peter Feerick 66eaae778d chore: Add targets for Flasher/Buddy
For the recently added BETAFPV and iFlight radios
2022-08-23 16:06:06 +10:00
8a57fa4b21 Updated Swedish translations for Companion and radio 🇸🇪 (#2222)
* Minor changes

* Major revision and addition of several missing translations

Major additions, e.g. of several missing panels and now a vast majority of Companion is translated.
Learnt a lot but took me forever, must be a better way of doing it...

* Add files via upload

* Reapply ETX boilerplate header

* `GYRO` define is no longer used

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-08-21 13:35:15 +10:00
HThurenandPeter Feerick faef92c0be More Danish translations
Update da.h
2022-08-21 13:22:58 +10:00
Peter FeerickandPeter Feerick e40e7ccc68 chore: Regenerate yaml 2022-08-20 10:59:50 +10:00
Peter FeerickandPeter Feerick 1500122b12 fix: Update path and board name for fw builder 2022-08-20 10:59:50 +10:00
Peter FeerickandPeter Feerick f560805fee chore: Change LCD offset to more generic form 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick e1ffa373e5 add LCD_HORIZONTAL_INVERT 2022-08-20 10:59:50 +10:00
Peter FeerickandPeter Feerick 0c49cde607 chore: Remove unrelated formatting 2022-08-20 10:59:50 +10:00
Raphael CoefficandPeter Feerick 5779675d2b Remove useless EEPROM_VARIANT 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick 680087f182 Increase backlight brightness 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick 908d5d7380 Adjust the background image of the emulator page 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick 0219426b26 Add LR3PRO as an independent target 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick 9d7abf78eb Add LiteRadio3_Pro target on companion and simulator 2022-08-20 10:59:50 +10:00
zhaobingandPeter Feerick 3833a209af Add BETAFPV LiteRadio 3 Pro ELRS radio 2022-08-20 10:59:50 +10:00
3djcandGitHub 6648dffc8c fix: Prevent TF lockup on radios using SDIO (#2210) 2022-08-19 15:16:27 +10:00
MichaelandGitHub 34dadf7b65 fix: Audio/haptic feedback for all hard keys except trim switches (#2201)
* Added audio/haptic feedback for all hard keys excpet trim switches.

Changed logic from application decides if feedback has to be given (was inconsistent and inefficient) to key driver detects button down and triggers immediate feedback if radio settings allowed for acoustic and/or haptic feedback (radio settings, radio setup, sound set to All)

With this change all instances of the application calling for feedback were removed in favor of the centralized approach.

This first commit also introduces a dummy function for providing feedback on key presses in boot.cpp because keys.cpp is also used as the bootloader key driver but with no logic to determine if feedback is allowed. Using a define that indicates keys.cpp is compiled for use in the bootloader would make a much nicer and backwards compatible solution.

* don't want to change libopenui so silence onKeyPress (application requests feedback) in audio.cpp

* made generation of acoustic/haptic feedback conditional on BOOT define, i.e. no feedback if keys.cpp is compiled for the bootloader

* removed onKeyPress()

* fixed crash on acoustic/haptic feedback on hard keys by restoring keys.cpp and moving logic to LvglWrapper.cpp/keyboardDriverRead().

Removed call to getWindowEvent() which would just call getEvent(false) by directly calling getEvent(false). This allowed to remove getWindowEvent() entirely as it was only used by keyboardDriverRead().

* fix: Audio header include no longer needed
2022-08-19 15:00:50 +10:00