Commit Graph
18555 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub d57afea89e chore: Remove unused files (#3191) 2023-02-15 13:10:14 +10:00
ulfhedlundandGitHub 205342b9b4 chore(translation): Swedish translation updates 🇸🇪 (#3194)
* A few additions and minor changes

* Minor changes

* Added timer string for PR #3173

* Missing save and delete theme

Added missing strings for Save theme and Delete theme
2023-02-15 13:03:16 +10:00
Raphael CoefficandGitHub 5f17156036 fix(b&w): Missing STRT timer labels (#3173) 2023-02-14 12:05:39 +10:00
Neil HorneandGitHub 1913d65b10 fix(cpn): Update firmware mapping of firmware id to repo (#3160)
* fix(cpn): Update firmware mapping of firmware id to repo bin file

* typo
2023-02-13 20:42:47 +10:00
philmozandGitHub 00c38511cb feat(colorlcd): Improve trainer page layout, use Add/Replace instead of +=/:= (#3104)
* Adjust trainer setup layout to better use space and avoid scrolling.

* Adjust padding for landscape layout.

* Change text for trainer mode to 'Add' and 'Replace' instead of '+=' and ':='. Adjust layout to fit. Copy translations from TR_VMLTPX strings.
2023-02-13 20:30:52 +10:00
philmozandGitHub c3e22b8d7e fix(color): Use two rows for telemetry buttons when needed (#3183)
When translation text is long (CZ) or portrait screen, use two rows for buttons
2023-02-13 19:16:29 +10:00
Malte LangermannandGitHub 070b255647 fix: RTOS independent 1ms tick count for HAL (#3178)
* fix: use a 1ms HW timer to generate a RTOS independend 1ms tick counter for HAL

* fix comments
2023-02-13 16:35:11 +10:00
60cdb897ee feat(cpn): Radiomaster Boxer support (#2910)
* feat(cpn): Initial Radiomaster Boxer support

* fix(build): Halt if invalid simulator plugin specified

* fix: 6POS not correctly defined

* chore: Less EEPROM stuff needed

* Start of simulator support

* Enable left buttons and fix area mapping of page up and down

* fix(cpn): Internal reference to pots

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
2023-02-11 20:10:12 +10:00
Raphael CoefficandGitHub d4633ea1de chore: Move __global_locale to FLASH (frees some RAM!) (#3169)
And save a bit of RAM.
2023-02-10 19:52:42 +10:00
MichaelandGitHub 2470cedf38 chore: Remove obsolete language defines, single source for telemetry sensor names (#3119)
* - all telemetry sensor name definitions in one place (untranslated.h)

- all telemetry sensor name definitions follow the naming convention STR_SENSOR_<sensor>
- eliminated one redundant definition
- editorial updates to telemetry protocols code to reflect the naming convention changes
- re-introduced translations in da.h (STR_SENSOR_THROTTLE and STR_SENSOR_SPEED)
- re-introduced translation in it.h (STR_SENSOR_GPSDATETIME)
- re-introduced translation for fr.h ( STR_SENSOR_BATT)
- saved 160 Bytes of flash

* removed obsolete translation

saved 280 byte flash memory in total

* finally removed extern const char STR_MENUTEMPLATES[]; definition

adjusted da.h, fr.h, it.h local sensor name definitions to naming conventions STR_SENSOR_<senosr>

* corrected merge

removed obsolete #ifdef

* some more obsolete ones

* added TW and CN translation for TR_PERIOD and TR_INTERVAL

fixed problem in /radio/src/gui/colorlcd/fullscreen_dialog.cpp preventing builds for CZ, IT and FR languages
2023-02-10 19:49:41 +10:00
Raphael CoefficandGitHub be3f8d74a8 feat(lua): Port of NodeMCU Lua53 read-only tables (#2994)
* chore(lua): revert useless c light function change

This change was part of the eLua LTR patches (based on 5.1), whereby this feature was already integrated in Lua 5.2.

* feat(lua): port of NodeMCU Lua53 read-only tables

# Conflicts:
#	radio/src/lua/CMakeLists.txt
#	radio/src/lua/api_general.cpp

* fix(nv14): missing SDRAM definition

* fix: l_mathop

* fix: use float functions in drawPower()

* fix: ltable resize

* fix: correct name is "bit32"

* fix: first Lua context must be closed last

As the lookup cache is attached to that one

* Revert to Lua using double

* Ensure byte-code compatibility

* Fix possible compatibility issue with `lua_typename`/`luaL_typename`

* Fix Bitmap symbol table

* Re-add table lib for COLORLCD
2023-02-09 20:29:56 +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
ulfhedlundandGitHub d80adc6c4d chore: Updated SE translations 🇸🇪 (#3148)
* Updated translations, error fixes etc

* Minor changes

* Minor updates

* Update for PR #2998

* Added strings for PR #2998

* Minor error fix

* Two new strings translated

* Fixed spelling mistake

* Another minor fix

* Added translations for PR #3062

* Just a few corrections

* Add files via upload

New translations added

* Changes after PR #3119 translation clean up
2023-02-08 19:21:32 +10:00
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