Commit Graph
18542 Commits
Author SHA1 Message Date
philevilleandGitHub df00d7d8a0 Update README.md 2023-02-07 18:04:55 +01:00
Peter FeerickandGitHub b185ba24ee fix(color): Duplicate selected theme, update color list (#3122)
* fix(color): Duplicate selected, not current theme

* fix: Update color list if theme edited
2023-02-05 13:57:31 +10:00
46cc979875 fix: Regenerate yaml, carryTrim => trimSource cleanup (#3121)
PR #2995 didn't take into account the data model storage actually does change when you change a variable name. 
Boxer yaml generation was missed in earlier PR. 

* chore: Run `generate-yaml.sh`

* chore(cpn): carryTrim -> trimSource

* fix(build): Boxer missing from `generate-yaml`

* dodgy attempt to read old carryTrim

* fix: Don't break the byte boundary + reorder

* fix(yaml): indentation for attributes that should not be output

* chore: Regenerate YAML after rebase

---------

Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
2023-02-05 13:46:02 +10:00
philmozandGitHub 4e09bd7b8c chore(color): LVGLify custom mixer scripts page (#3071)
* LVGL flex conversion for custom mixer scripts.

* Adjust spacing for portrait layout and widest text value.
2023-02-05 11:31:32 +10:00
Peter Feerick 8d00dc8803 fix(translation): String casting for CZ/IT/FR
Fixes #3145
2023-02-05 09:21:30 +10:00
Neil HorneandGitHub 4cd43bb6c7 fix(cpn): Save "set main view" number for special/global function (#3132) 2023-02-03 20:59:06 +10:00
philmozandGitHub f6c6e77219 chore(color): LVGLify statistics and debug screens (#3072)
* LVGL flex conversion for statistics and debug pages.

* Replace empty text box with call to grid.nextCell().

* chore: Formatting
2023-02-03 20:45:03 +10:00
philmozandGitHub 41907f598b chore(color): LVGLify and enhance model -> telemetry page (#3070)
* LVGL conversion for telemetry.

* Move RSSI section after Sensors section.

* Replace empty text box with call to grid.nextCell(). Center 'fresh' data indicator vertically.

* Fix build error after rebase.
2023-02-03 20:37:07 +10:00
HThurenandGitHub 6f4abef36a chore: Updates to Danish translations 🇩🇰 (#3128)
* Qt changes and aligment in da.h

* Update companion_da.ts

Restore da to language="da_DA"
2023-02-02 13:25:00 +10:00
philmozandGitHub fce96ffe1c chore: CN/TW translations for theme save and delete strings (#3129) 2023-02-02 13:22:21 +10:00
raphaelcoefficandPeter Feerick af9f1b7e9c chore: fix STM32 HAL headers
Single HAL headers/modules are enabled by changing the defines in `stm32f2xx_hal_conf.h` / `stm32f2xx_hal_conf.h` rather than being directly included into this file.
2023-02-02 13:12:33 +10:00
philmozandGitHub 291a95b32b fix(color): Overlap in logical switch monitor footer (#3137) 2023-02-02 13:06:24 +10:00
RistoandGitHub 6af2bb7173 fix(doc): LUA doc link to units.md
* Minor fix to LUA documentation
2023-01-28 12:59:26 +01:00
philmozandGitHub 7a1231753a feat(color): Change global variables layout to better match other pages (#3116)
* Change global variables layout to better match other pages.

* Move internal classes for global variable page from .h to .cpp file. Convert header text in edit page to StaticText object and remove 'paint' function.

* Fix build error.

* chore: Formatting
2023-01-28 12:28:18 +10:00
philmozandGitHub e9b8a23ba4 feat(color): Convert theme save/delete dialogs to use ConfirmDialog popup (#3062)
* Convert theme save and delete dialogs to use ConfirmDialog popup instead of full screen alert.
Add strings for translation.

* Update translations.

* Update translations.

* Update translations.

* CZ translation

* chore: Formatting

* Call 'cancelHandler' if RTN button used to exit ConfirmDialog.

* Possible fix for 'save theme' dialog not working in the theme editor.
2023-01-28 10:48:23 +10:00
philmozandGitHub 7bbaa0909a fix(color) Flight mode name display in global variables overview off by one (#3115) 2023-01-28 10:20:35 +10:00
philmozandGitHub 3d2724c2c1 chore(color): LVGLify spectrum analyser footer (#3077)
* LVGL flex conversion for spectrum analyser footer.
Fix header title display for spectrum analyser.

* fix: `DEF` touch keyboard wasn't using freqDefault
2023-01-27 22:02:05 +10:00
philmozandGitHub 1dc422592d chore(color): LVGLify model template selection pages (#3076)
* LVGL flex conversion for model template selection pages.
* chore: Formatting
2023-01-27 21:44:25 +10:00
philmozandGitHub d53b94d14c feat(color): LVGLify and improve layout of theme details edit dialog (#3078) 2023-01-27 21:26:18 +10:00
d77389d30b feat(color): LVGLify and enhance Logical Switches page (#3019)
* Update logical switch layout:
- Use LVGL flex / grid layout
- Same height for all buttons
- Display logical switch name inside button so entire row acts as button
- Consistent press handler for buttons (always show popup menu)
- Group buttons for empty switch in lines to utilise space
- Remember selected button and reselect after edit.

* Fix incorrect switch being selected when changing tabs.

* Fix selection of focussed button when using 'Clear', and switching tabs.

* Reorganise logical switch edit code.

* Change button style to match input/mixes/outputs pages.

* Single line overview on landscape LCD layout. Convert to using grid and lgvl objects for overview buttons.

* Remove redundant flag.

* Remove logic that tries to center scroll around selected button (not working).

* Remove empty buttons and add a single '+' button at the bottom to match inputs and mixes.

* Remove unused code.

* Correct string usage.

* Add long press handler for quick access to the '+' button functions.

* Display logical switch operation and parameters as an expression. Add 's' suffix to time values.

* Adjust spacing.

* Set V2 number edit control to automatically resize and fit content to prevent clipping of large values.

* Revert to fixed column layout.

* Adjust grid spacing.

* Convert the logical switch view in the channel monitor to LVGL flex.

* chore: Formatting

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-01-27 19:22:48 +10:00
Peter Feerick 7e026e2b49 chore: Remove redundant leftover from #3058 2023-01-27 19:20:11 +10:00
c739842c8d feat: Improve defaults, range and wording of SD Log SF (#3058)
* fixes https://github.com/EdgeTX/edgetx/issues/2965

Changes:
- the log period range is now 0.1s to 25.5s
- upon creation of a new SD Logs SF the period is initialized to 1.0s
- text "Value" is changed to "Period" to indicate parameter represents the log period

ToDo:
- translations for "Period" if desired

rebase due to #2992

* changed Period to Interval

Added translations for DA, DE, EN, IT, PL

* added defaults for TR_INTERVAL to language files

* fixed problem with too many leading zeros for intervals less than 1s.

before: 00.5s
after: 0.5s

* added CZ translations for TR_PERIOD and TR_INTERVAL

changed EN TR_FUNC from "Func" to "Function"

* updated TR_FUNC for CZ, DA, IT, JP, PL

updated TR_PERIOD and TR_INTERVAL for JP

* added TR_PERIOD,  TR_INTERVAL, TR_FUNC for SE

* implemented TR_SF_SWITCH and logic to change between TR_SWITCH and TR_SF_SWITCH

* 212x64 radios: single source for #define TR_LSW_HEADERS in language files

deleted redundant defines

* changed 128x64 and 212x64 SF SD Logs to same logic as colorlcd with

- minimum log interval 0.1s
- maximum log interval 25.5s
- default log interval 1.0s

TX12_Sim and X9D_Sim tested ok

* migrated functional changes due to PR #2992

* missed updating TW language file

* fix: Always `STR_SF_SWITCH` regardless of SF

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-01-27 18:33:31 +10:00
philmozandGitHub 2e00f6aec8 fix(color): Make "Add New" curve handling work more like SF (#3103)
* Make new curve handling work like special functions & logical switches - show popup of available curve slots.

* chore: Formatting, comment typo
2023-01-27 16:00:47 +10:00
Peter FeerickandGitHub 93865ba7b2 fix: B&W MPM protocol offset, subprotocol lists too long (#3112)
* fix: Off by one error for protocol list
* fix: Incorrect range for some Frsky subprotocols
2023-01-27 15:28:04 +10:00
RistoandGitHub 5acaa79c1c feat(fw): Only show SD card in USB storage mode (#3045)
* Only attach SD card in USB storage mode

* Added compile time option FWDRIVE (default OFF) to enable attaching also the firmware drive via USB, when attached in mass storage mode.

* Re-trigger GitHub Actions

* chore: Trailing whitespace cleanup
2023-01-26 14:39:31 +10:00
Neil HorneandGitHub d952333037 feat(cpn): Status dialog when writing models and settings to radio (#3043) 2023-01-26 13:53:13 +10:00
Raphael CoefficandGitHub 57bf180a9b feat(mpm): remove FrSky special treatment madness (#3032) 2023-01-26 11:44:46 +10:00
Peter Feerick e380736197 chore: Add RadioMaster Boxer to firmware list 2023-01-25 20:20:34 +10:00
Raphael CoefficandPeter Feerick 4c272863d3 fix: Prevent firmware overflow for X9D+2019
- Remove __global_locale
- Use same animation for startup and shutdown
2023-01-25 19:42:05 +10:00
philmozandGitHub d6af2387ac fix(color): Curve preview layout in model input edit view (#3099) 2023-01-25 10:49:03 +10:00
475ad1fb6f feat(ui): Improved Button/touch handling for throttle / switch alert screen (#3061)
* Button and touch handling for throttle / switch alert screen.

* Restore original touch behaviour for confirmation dialog.

* Add buttons for 'actions' at bottom of screen.

* Fix infinite loop that can happen in some instances.

* Remove the option for a long press on the touch screen to close the dialog. On screen buttons must be used to close.

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-01-25 10:44:12 +10:00
philmozandGitHub 3d700f42f0 feat(color): Long press SYS on main screen for radio setup (#3092) 2023-01-25 10:19:56 +10:00
philmozandGitHub f7cdfdc2a9 fix(cpn): Joystick slider mappings (#3093) 2023-01-25 10:09:56 +10:00
RistoandGitHub 0b79315fe5 chore: cleanup, remove unnecessary commented line 2023-01-24 19:03:10 +01:00
philmozandGitHub ee208275f2 fix(color): Center align text in number input boxes for curve editor (#3094) 2023-01-24 18:17:07 +10:00
philmozandGitHub 820a924e4f feat(color): Add long press handler for new model curves page (#3091) 2023-01-24 11:33:40 +10:00
philmozandGitHub c2dff941d9 fix(color): Close menu popup on main view when switching to other views (#3090) 2023-01-24 11:11:11 +10:00
philmozandGitHub 80f3cbe759 fix(color): Prevent multiple instances of the main menu popup (#3067) 2023-01-24 11:05:45 +10:00
philmozandGitHub 2d534a88cb fix(color): Fix infinite loop/crash with some uses of POPUP_WARNING/POPUP_INFORMATION (#3068)
Prevent infinite loop and crash if POPUP_WARNING or POPUP_INFORMATION are used from within code that is called from a 'Menu' line button.
2023-01-24 10:57:28 +10:00
philmozandGitHub 4a23f04844 feat(color): New model curves page layout (#3041)
* New curve page layout.

* Set scroll to selected curve.

* Cleanup.

* Add #define's for sizing. Show both curve number and name in title bar (if name is set).

* Remove unnecessary call to CurveEdit::SetCurrentSource. Use runtime size for layout where possible.

* Add comments

* Fix base layout position.

* Fix issue with button selection not working properly with scroll wheel.
2023-01-23 21:15:53 +10:00
philmozandGitHub 5503048e47 chore(color): LVGLify Special/Global Functions tabs (#2992)
* Convert Special / Global function page to flex layout.
Move function name text into row button so entire row acts as a button.
Display active functions first, then inactive functions as smaller buttons in a grid.

* Merge duplicate cases in switch, fix indentation.

* Keep selected button focussed after editing a function.
Add long press handler to jump between free and used functions.

* Revert to numerical order for functions list.
Use context menu for empty functions all the time.

* Fix parameter type and remove redundant lines.

* Fix incorrect function being selected when changing tabs.

* Fix selection of focussed button when using 'Clear', 'Delete' and switching tabs.

* Change button style to match input/mixes/outputs pages.

* Fix checked state display for buttons.

* Fix scroll position when adding new entries at the bottom. Center selected button after editing or changes to list.

* Remove logic that tries to center scroll around selected button (not working).

* Convert overview button to lvgl grid.
Display function as more readable expression instead of discrete values.
Single line display for overview button on landscape screen.
Fix display when editing GVAR INC/DEC value (was '--' instead of '-=').
Fix incorrect module displayed for 'Set Failsafe' (swapped).
Show all parameter and values for each function type in overview.

* Fix 'Enabled' indicator so it is not selectable with the scroll wheel and looks less like a radio button.

* Remove empty buttons and add a single '+' button at the bottom to match inputs and mixes.

* Add long press handler for quick access to the '+' button functions.

* Ensure addButton is initialised if not needed (list is full).

* Use formatNumberAsString helper function.

* Adjust grid spacing.

* fix: `STR_VALUE` not `STR_VOLUME`
2023-01-23 20:48:27 +10:00
eshifriandGitHub 8e8e78671a feat: Timer Voice & Haptic option, show elapsed speak time value when countdown (#2711)
* fix "odd" elapsed time announcement

* announce elapsed seconds

* Add support for "Beeps and Haptic" and "Voice and Haptic" for timer countdown.
2023-01-23 20:00:12 +10:00
CliffandGitHub 0b8e4c6003 Allow using Segger RTT as debug output (#3052)
Firmware needs to be built with -DDEBUG=YES and -DDEBUG_SEGGER_RTT=YES to use this feature.
2023-01-23 09:08:31 +01:00
15dca01f42 fix(color): Inactivity alarm suffix proper grammar (singular/plural) (#3064)
* Add translations for "minutes"

* Add missing PLURAL2

* fix grammar

* Next attempt

* include limits.h

* minor cleanup

* Addin some translations for some languages based on inputs

* chore: Remove BREAKSPACE, add ignore flag
And some minor cleanup / formatting

* chore: Revert `TR_USE_VARIABLE_PLURAL`
Use `TR_USE_SINGULAR_IN_PLURAL` properly... thanks @eshifri

Co-authored-by: eshifri <eshifri@hotmail.com>
2023-01-20 12:07:08 +10:00
philmozandGitHub fd04f4a257 chore(color): Cleanup header title display logic (#3059)
Use 'Page' class 'header' property to display title where possible, instead of creating a new object.
2023-01-19 11:18:58 +10:00
Raphael CoefficandGitHub 933253c445 chore(audio): Remove legacy ULAW/ALAW audio codecs (#2991)
... thus saving 1216 bytes of precious flash memory.
2023-01-19 11:16:59 +10:00
Raphael CoefficandGitHub acd95dfad4 fix(B&W): Avoid having constants in SRAM (#2993)
fix constness to avoid having constants in data segment 
.... and thus free some precious RAM
2023-01-18 20:12:35 +10:00
Peter Feerick acd44516d0 fix(color): Display of signed values
Import fix for #2842
2023-01-18 11:52:46 +10:00
Raphael CoefficandGitHub a25bc828cb chore(bw): Remove doubled CRC table, saving 512 bytes of flash (#2990)
....  thus waisting 512 bytes in Flash for nothing.
2023-01-18 11:05:45 +10:00
philmozandGitHub fa4e6d795c fix(color): Update of Edge LS v1-part2 when v1-part1 when editing (#3049) 2023-01-17 15:11:01 +10:00