* Translation for PR #1425
* Minor update
* Updates - including theme text translations
* Update se.h
* Proper translations for CZ,DA,DE,FR,HE,IT,JP,PL
Added translations from translators for 8 languages
* Updated translations for new PRs
Updates for new commits c805940, 2b100e0, a2d845d and c4e221f
* New translations added
* Possible minor changes
* First update for 2.10
* One minor change
* One error fixed
* Additional translations up until PR #3726
* Translations up until PR #3726
* Minute change for one string
* Updates for recent PRs
* Updates for new strings
* Minor changes
* Update companion_sv.ts
Minor change in About EdgeTX
* Remove commented lines
* Restrict calibration to sticks, pots and sliders
* Fix pots and sliders config to support pre and post adc refactor
* fix: pfeerick sucks at rebases
* chore: Add more bits missed during rebase
* chore(cpn): use adc version constant
* fix(cpn): calibration encode mapping
---------
Co-authored-by: elecpower <neilh713@tpg.com.au>
* Enable startup splash screen duration for color LCD radios.
Add option to disable startup sound.
Add Companion support for changes.
* Add translation string for Hebrew language file.
* Fix rebase.
* chore: Add T20
* Update translations.
* Update translations.
* Update translations.
* Update translations.
* Right justify radio setup controls.
* Use longer translations for all radios.
* Enable splash screen timeout for NV14/EL18.
* Suspend watchdog timer to prevent EM if long splash display time selected.
* Simplify SPLASH_TIMEOUT code.
* Use WDG_RESET instead of watchdogSuspend.
---------
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Support all current timezones.
* Fix function name and calculation for timezone offset.
* Allow setting any time offset value from -12 to +14 in 15 minutes increments.
* Alternate timezone editor in Companion (from elecpower).
* Fix compiler warning.
* chore: Add the T20
(to allow aligning with firmware compile option)
* feat(cpn): External module form factor set in Radio Profile to allow aligning with firmware compile option
* Note tweak
* feat(cpn): User configurable audio mute in radio settings (#3710)
* CPN: user configurable audio mute in radio settings. Supports PR #3703
* make checkbox only visible for radios with AUDIO_MUTE_GPIO pin:
- All color lcd radios (including NV14) except Horus X12S
- TX12, TX12MK2, ZORRO, BOXER, T8, TLITE, TPRO, LR3PRO, COMMANDO8
* chore: Add Companion translations
---------
Co-authored-by: Michael <mha1@users.noreply.github.com>
Add "hardware_defs" target to dump hardware defines from hal.h per target
Fixed hal.h definitions for switches & ADC inputs
Tools to generate hardware definitions from current hal.h
generator: add support for EXTx and analog switches
WiP
Add generated header to hardware_defs target
Add support for ADC input direction and index per GPIO port
Incredible: it compiles
Removed StdPeriph ADC driver
Works on QX7
Works on TX16S (VBat missing)
Switch driver using generated switches for stm32 targets
Switch driver with generated switches for simu
Use switch names from switch driver
Fixed single conversion handling
Fixed horus VBat reading
Added switch name
Fix warnings about bitfield offsets and GCC 4.4
This is caused by bitfields that cross type boundaries. In this particular case, it happens as the bitfield is not defined the same in `rtc_backup.cpp`.
Switches has already been moved to generic driver
Jitter measurement for each sample, not just for oversampled values
Moved periph clock init to the ADC driver
ADC & GPIOs.
Add switchInit() to init pins
Fix NV14 CMake
Fix taranis target
Fix NV14 (again)
Model audio files: use new interface for switch index
Fix X9-lite
Fix simu headers
Fix getSwitchName()
Add support for ADC switches
Fix switch warning YAML
Test only switches which are defined
Conversions tests for QX7 only on QX7
Fix X12S
Fix function switch names
Enable ADC periph clock before initialising channels
NV14: offset inputs for the sticks & fix switches
WiP: get rid of VSRCRAW and some more
Simu shall use normal ADC driver
fix x7
fix nv14
Fix 9x nav
fix 212x64
fix xlite
fix x9e
fix simu lib
fix unit tests
fix x7 tests
PWM stick values should be written directly into adcValues
... just like FlySky sticks.
fix x12s
fix nv14
Add some support for SPI ADC (only unit tests)
Remove `jq` usage
fix generate_yaml.py for newer libclang
fix pot config
fix stick names
Some YAML generator improvements
Max 16 Pots on COLORLCD
Fix some source names
Use 10 bits for switches to prevent overflow
Removed horus constants for switches & ADC inputs
Fix unit tests
Fix curve edit
Fix libsimulator
Fix function switches (tpro)
Refine ADC & analog API
Moved hardware definitions scripts and templates into own dir
cleanup API refine
Fix unit tests
Mixer: apply calibration only on required inputs
Place ADC switches after all other ADC inputs
Fix X12S
Remove useless TR_POTS_VSRCRAW, TR_SW_VSRCRAW, and TR_VSRCRAW
Cleanup redundant generated YAML parsers
Fixes Boxer rebase
Add boxer to generate-hw-defs.sh
Obsolete LUA exports
Add boxer ADC_DIRECTION
Split generate_hw_defs.py into multiple files
Some cleanup (+ LUA switches)
Fix AXIS definitions
Fixed translation strings declarations
Some rebase fixes
Remove some useless StdPeriph drivers
fix: set pin mode to reset state on usart deinit
fix: use canonical names for calibration data
fix: ADC driver does not care about unconfigured inputs
fix X12S ADC
Add support for ADC conversion chaining
Better X12S ADC implem
Moved X12S ADC driver to HAL/LL
Improve ADC driver separation
Fixed taranis & nv14
Moved PWM gimbals to HAL/LL
Removed useless TR_EXTRA_VSRCRAW
Fixed include guards
Small fixes
Renamed control inputs
Moved internal and external module pulse driver def to boards
Move more things to the generic_stm32 board
Remove STR_VMIXTRIMS
Added analog labels
Generate main control names
Misuse labels / short labels for main controls
Backward compatibility: sliders and legacy names
New keys driver
Let's get rid of StdPeriph headers in simu
Add jinja2 to CI workflows
Use `grep` instead of `sed`
chore: add python jinja2 oto msys setup script
Removed more static definitions and use dynamic ones instead
Fixes X9E
Fix x7 nav too
212 switch display
Fix default sliders
Removed NUM_STICKS
212 switch display working nicely
Surface radio 'stick' replacements
fix: switch, trim & rotary pin init
Remove old key drivers
Removed VKEYS
Removed ETX_FOURCC
Fixed SURFACE_NAME
Removed TR_VSWITCHES & TR_TRIMS_SWITCHES
Fix xpot switches
Store calibrated analogs in physical order
Use getSourceString in drawSource
Implement missing YAML read/write
Fix isSourceAvailableInInputs()
Fix isSourceAvailable()
Some surface fixes
Fix CLI debug
Ported colour UI of analog diagnostics to new ADC API
Small fixes
Better input mapping
Minor tpro fixes
Fix trims available
Remove TX mode choice on surface radio
Rename surface controls
Channel order alignement
Fix throttle warning
Fix checkTrims()
Fix pot config casting issue
Fix IS_SWITCH_FS()
Fixed input mapping
Fix fswitch auto-switch
Fixed storing / reading function switches in YAML
Fix enableVBatBridge() / disableVBatBridge()
Fix interesting mode conversion
Fix sources issues
Fix special funnction list
Proper function switch handling
128 GUI improvements
Fix compilation
Boxer cosmetics
128 hardware screen cosmetic
Fix TX12 switches
More switches fixes
Simplify CPU type handling
Fix flash size
Fixed page-up / page-down in libopenui
* fixes#2552
- remove edit option rssiSource
- reset rssiOption to default (none) if carried over from OpenTX conversion
* deleted rssiSource functional code Companion, simulator and radio
* forgot one commented line
* feat(cpn): Add radio sort order edit (color) and sorting models list by any column (all)
* Add column double click to enable/disable model sorting (disabled by default)
* Refresh UI module settings when AHFDS3 config is updated.
* Fix scroll order for module options when 'FlySky' module type selected.
Fix simulator crash issues related to FlySky module.
* Fixed UI refresh problems in UI widget ordering fix.
* Refresh config when receiver is connected.
* Disable change of bind time options when receiver is connected.
* Rename methods to better distinguish between buffer fill or actual send.
* Clean and tidy up AFHDS3 state flow.
* Implemented settings sync upon setting changes.
* Added RF power settings for IRM301/FRM303.
* Added RF power sensors for FRM303.
* Fixed config not saved and only FRM303 supports RF power settings.
* Fixed RF power command error.
* Fixed a crash for IRM301.
* Always check if port exists and return nullptr for driver.
* fix: Make Companion preserve settings *as is*
---------
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Add options to disable radio and model menu tabs.
- Update radio and model data structs
- UI for color LCD radios
- Convert existing 'noGlobalFunctions' property.
- Language strings.
* Make 'theme' control specific to color LCD radios.
* Add B&W radio UI.
* Simplify code, reduce compiled code size.
Fix page count display on model select tab.
Fix GVARS for 212x64 radios.
* Collapse timer sections if timer is off.
* Remove 'Use global functions' checkbox from B&W model setup.
* Make preflight checks, throttle and view options sections expand & collapse (default collapsed).
* Fix build.
* Add view options to companion data classes, save and load values in YAML files.
Fix scrolling for radio setup view options.
* Add Companion UI for view option settings.
* Remove 'Mixes' from list of tabs that can be hidden.
* Updated Companion UI from elecpower.
* Use view options flags to enable/disable functionality:
- skip heli mixer logic if heli not enabled
- Remove heli, gvars and telemetry options from source selection if not enabled
* Remove 'flight mode', 'curve' and 'global variable' settings from input & mix editors if option disabled.
* Rename 'View Options' to 'Enabled Features'.
Put GVAR option under Flight Mode and indent text.
Make relationship between FM and GV more obvious.
* Remove global variable option dependency on flight modes.
Hide FM1-FM8 in global variables if flight modes hidden.
* Hide 'Custom Mixer Scripts' in source selection menu popup if disabled.
* Add translation strings for Hebrew language file.
* Fix typo. Add comment for double call to setCurrentTab.
* - Concentrated Multi protocol definitions into a consistent single source. Actually two .h files, one for the protocol list and names, the other for subtypes and capababilites, see comments in .h files as to why
- updated available protocols reflecting 1.3.3.20 (15+ protocols)
- fixed Companion always showing f/s and channel map options in model setup disregarding the protocol capability
* Following @pfeerick's review: changed heaeders and typos
fixed Ubuntu runtime error on assert
fixed change of Multi protocol not triggering writing yaml file
* corrected copy/paste error
* fixed FrSky index juggling
* Updated Multiprotocol database to current MPM project status (ref. MPM Multiprotos.ino)
- changed protocol name FX816 to FX
- added Flysky AFHDS2A options PPM and PPWM SBUS 16ch subtypes "PWM,SB16" and "PPM,SB16
- added V761 option to select TOPRC
- added FX options "816" and "620"
- added FRSKYR9 option "-- 8ch"
* MPM protocol scan excludes some protocols which are not meant to be selected. For Companion and Simualtor (and for radios if there is no MPM connected) this was handled in different places with outdated information. Harmonized and centralized the handling of non-selectabale protocols into the single source for all companion, Simulator and all gui types.
* More cleanup:
- changed some MPM protocol names to the ones the MPM delivers with MPM protocol scan to harmonize names between CPN/Simulator/radio
- added XN2927DUMP and MOULDKG to the list of excluded MPM protocols just like the MPM does with MPM protocol scan
- added new option value limits and moved definitions to single source
- adapted CPN and radio to use common definitions of option values for all GUI types
- moved distributed MPM (as far as possible) to one coherent place under a single #if defined (MULTIMODULE)
- fixed option value not reset at change of protocol
- some editorial stuff
Note: There is still some work to be done on CPN GUI option values. DSM2 servo rates are hard coded, BAYANG telemetry options are only shown by index and not by text as in radio code, AFHDS2A servo update rate is shown as index too which is to no use for users.
I'll try to fix all this in the next session, but request to get rid of BAYANG telemetry options translations. It is much easier to define a common string list by using untranslated.h
* rebase due to fr.h
* resolve merge conflict with main fr.h
* more cleanup:
- deleted multiple definition of MM_RF_CUSTOM_SELECTED in favor of single source define
- bw radios: change to only allow defined protocols rather than a fixed 127 protocols
* Changes:
- magic sentinel number 0xfe as define
- add 10 NN protocol entries for future use of new MPM protocols not yet defined in ETX (still recommend timely ETX maintenance update if MPM releases new firmware)
* Changes by @elecpower:
- align field labels to radio
- change servo update frequency from combo box to spin box with edit only via up/down arrows to stop invalid values being entered via keyboard. Remove frequency list used to populate combo box as only used by Companion.
- add validation to module yaml decode checking for unsupported multi protocols and/or multi protocol sub types and if unsupported set module to OFF just to be safe.
* Changes:
- radio: added validation to module yaml decode checking for unsupported multi protocols and/or multi protocol sub types and if unsupported set module to OFF just to be safe.
* CPN: use sentinel define
* cpn: Sort multi protocols list (courtesy @elecpower)
* fixes#3480
changes:
- moved FrSky subtype defines to MultiProtoDefs.h
- updated bind_button_driver.cpp
* missed replacing one instance of setMultiProtocol()
* changes:
- editorial change
- added multi option to OMP protocol (ref #2713)
* rather go for STR_MULTI_RFTUNE because MPM manual talks about RF tune
* made XN297_DUMP selectable (available with MPM debug fw only)
* corrected merge mistakes
* introducing external MLink module telemetry as module PPM subtype
* implemented fix for sensor discovery display not showing all detected sensors (is in separate PR too)
implemented PPM subtypes in Companion
* add PPM subtype to model printer
finalize subtypes for PPM in Companion
* added logic to try to use HW UART with inverters turned off first (e.g. NV14), then, if not successfull use soft serial inverted (== uninverted data due to HW inverters on PCB)
changed start bit detection IRQ priority from 5 to the previous 0 (also in separate PR)
* extended telemetry timeout to 2s due to slow Mlink RSSI update rate
* changed the "NOTLM" sub-type texts to:
- "No Telem" for 128x64 (this is the max numbers of characters it can take)
- "No Telemetry" everything else including Companion
* Companion:
- lower case 1st charachter on PpmSubTypeStrings to ppmSubTypeStrings
- added telemetry hooks for ppmSubTypeStrings stringx
* simplified serial port initialization for MLink telemetry
* editorial change: corrected obsolete comment
* TLite F4
* chore: Add to fw list for Buddy
* chore(cpn): TLite F4 Companion support
* fix: Remove seemingly incorect cmake set
Or at least, the code now builds without that directive
* fix(cpn): Stupid typo
* chore: Actually build/register tlitef4 simulator
* fix: Need tlitef4 flavor for simulator and updates
* chore: tlitef4 can use tlite simulator
* fix: downloadid AND simulatorid
* fix: Correct simulatorid
---------
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: Peter Feerick <pfeerick@users.noreply.github.com>
* Reduce RAM usage for advanced joystick system on radio:
- Don't allocate memory blocks unless joystick mode is being used.
Support multiple radio joystick configurations in Companion:
- Save configured joystick settings by joystick name in Companion settings.
- Save last joystick name used in each profile.
- Reload joystick settings by name when profile is changed.
* Only show configuration for used axes and buttons in Companion.
Send actual number of configured joystick buttons from radio in USB packet.
* Fix issue where USB joystick not recognised if no buttons configured.
* Fix compiler warnings.
* Remove debugging.
* Fix crash in Companion.
* Change channel 8 to type 'dial', workaround for Linux mapping issue.
---------
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
* Add 'Show Instance ID' button to telemetry page to show/hide sensor instance number (default is hidden).
Fix issues with page refresh when all sensors deleted.
Select closest sensor when a single sensor is deleted.
On change, only refresh the sensor list instead of the whole page.
The 'showInstanceIds' property is saved to the model file.
Update Companion to save/load 'showInstanceIds' in model YAML file. Add checkbox to telemetry edit page.
* Update all radio specific files.
* Keep focus on 'Discover/Stop' button when searching for new sensors.
Start sensor ID index at 1 to match B&W radios.
Keep focus on changed parameter when editing sensor, don't rebuild entire parameter list on change.
* Display actual 'instance' ID instead of 'instance' + 1.
* Fix incorrect ID when reloading simulator data.
* Fix incorrect ID when reloading simulator data on B&W radios.
* Add layout 4+2B right side 3QRT+1QRT
* Fix Layout 4+2B LayoutId, length max 9 char
* Maybe this will work?
---------
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Add support for the '1x' repeat option for 'Play Script' special functions.
* Add Companion and B&W radio support.
* Fix B&W radio logic and layout.
* Add translation hooks.
* Change ThemeFile class to use generic YAML parser instead of hard wired code.
Fix handling of empty input lines in YAML parser.
Increase size of YAML parser variables to handle theme 'info' property length.
* Update comment.
* Fix error.
* Proper fix for blank lines in YAML file.
* Fix YAML blank line handling (attempt 3).
* Ensure theme YAML file is backward compatible.
* Store selected theme in radio settings instead of selectedtheme.txt file.
On start, if radio settings theme is empty, try and load from selectedtheme.txt file.
In Companion, save/load the selected theme in the radio settings YAML file; but no UI to select theme.
* Update selected theme name in radio.yml if the theme name was edited.
* Only save 'selectedTheme' in Companion on color LCD radios.
* Fix(cpn) - load models into slot based on filename for non-label radios
* Check model filename index within bounds and if not skip file
* Check if slot is free before loading file if not skip
* Flight mode list and edit changes:
- Update trim ranges in Companion to match radio.
- Move trims setup to main edit view instead of dialog popup.
- Show/edit current trim value for each trim (if enabled)
* Show flight mode list view like logical switches.
* Update FM trim values in edit window if trim is changed (via trim switch).
* Use styles for layout
* Remove grid layouts - use flex flow as it is faster.
* Speed up page build time.
Reduces build time on TX16S Mk2 from ~320ms to ~25ms.
* Fix touch screen events.