Commit Graph
19557 Commits
Author SHA1 Message Date
gagarinlgandMalte Langermann 3cd6465bb1 fix: missing/wrong entries in HW definition 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 3308500b17 More libsimu fixes 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 6723cb9a05 Fix Boxer libsimu keys 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 78c9ce615e fix: initialisation order when starting the simu, first initialise, then read ADC data 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann ae2fdb95bd Fix rounding errors in ADC value calculation for 6POS switch as per Philmoz #3713 2023-06-25 14:32:39 +02:00
raphaelcoefficandMalte Langermann c15c5ea9eb fix: switch position if disabled or transitioning 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann fc6ad808ad Fix BW default switch warning 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann cc47656cd5 Introduce 6POS default calib for Boxer and tx16s 2023-06-25 14:32:39 +02:00
raphaelcoefficandMalte Langermann ea27259d84 fix: 6POS read & calibrate 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann c528172a19 Fix tlitef4 compilation 2023-06-25 14:32:39 +02:00
raphaelcoefficandMalte Langermann 6cf23dd5ee fix: mixer tests 2023-06-25 14:32:39 +02:00
raphaelcoefficandMalte Langermann 40e7d8c365 libopenui: align keys on stdlcd 2023-06-25 14:32:39 +02:00
raphaelcoefficandMalte Langermann 6617a5da64 fix: MIXSRC Heli & GVar 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann be78a8829f Display user friendly pot name 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 84c1d126b5 Revert "Trivial tx16s pots fix"
This reverts commit 190c23b0271eb431dbd448fd95cf0e6d64a95b37.
2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 2495f42813 Trivial tx16s pots fix 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann bff3e653fc Fix Colorlcd navigation 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 29911c6b23 partial TX16s pgup pgdn key fix 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 074f5fca0d stm32f413 fix 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 3b655f7d63 Remove warning 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 784bfa7b7a Fix function switch yaml parser 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann ef46f28cf2 Function switches cleanup 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann a2d845d6b1 Fix DEBUG compile 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 4b421a456a Fix trims displays in various scenarios 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 7a01325988 Various cleanups 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann c8ac653b4f Re order pots on 2 lines dispay 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann 3eb0122196 Allow more than 4 trims in 128 FM screen 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann daf7f9b11f Fix USB charging on TPro like targets 2023-06-25 14:32:39 +02:00
Raphael CoefficandMalte Langermann 2b100e0eb5 refact: ADC, switches and keys
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
2023-06-25 14:32:39 +02:00
Neil HorneandGitHub b6dd3a0ef8 fix(sim) do not allow launching if no radio profiles found (#3712)
* Test for existence of radio profiles and advise if not found

* Fix message box title and move simulator name to constants
2023-06-23 18:43:03 +10:00
MichaelandGitHub 15849956ce chore: Remove rssiSource and use default value (#3643)
* 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
2023-06-23 13:52:54 +10:00
philmozandGitHub 2a3825ebe9 fix(cpn): Wrong input offset value saved to YAML if GV (#3707) 2023-06-23 10:37:12 +10:00
Neil HorneandGitHub 42098ae514 feat(cpn): Add radio sort order edit and sorting models list by any column (#3659)
* 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)
2023-06-23 09:07:55 +10:00
MichaelandGitHub d57961917e fix(color): Firmware update progress text stuck at device reset (#3704)
* fixes #3695 flash progress

* move init() to where it belongs (constructor)
2023-06-22 20:34:09 +10:00
3djc 009b638783 wrong branch (sorry) 2023-06-21 12:26:45 +02:00
3djc 3394923f3c Some compile fixes 2023-06-21 12:22:53 +02:00
3djcandGitHub d85218bbc5 fix: (re)enable time based mute for TX16S based on RM feedback (#3701) 2023-06-20 19:32:12 +10:00
altemanandGitHub 97deeeb4d3 fix(lua): Support changing module type from model.setModule() (#3699) 2023-06-20 19:03:33 +10:00
MichaelandGitHub fa490e5adb fix: external MPM flash (#3671) 2023-06-20 11:39:43 +10:00
cb533f4493 fix(AFHDS3): Sync UI with Flysky AFHDS3 module stored settings (#3501)
* 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>
2023-06-19 19:00:02 +08:00
Frankie ArzuandGitHub bdb78ba2ef fix(telemetry): DSM Flight Pack Monitor Sensor encoding (#3690)
Fix the Flight Pack sensor processing.

The main problem was that we expected the data to come in big-endian encoding, but in reality, the sensor send it in little-endian.   This was causing the 1st byte to change much faster, and eventually move into the negative value.

Added more validations to handle little-endian values, and recognize NO-DATA scenarios
2023-06-19 12:39:40 +10:00
Neil HorneandGitHub a288eb1f42 cpn: Add read/write for trainer multiplier to radio.yml (#3694) 2023-06-19 12:35:32 +10:00
philmozandGitHub ee84b46d59 fix(color): Only reset Lua if changing PLAY SCRIPT special function (#3698)
And not PLAY TRACK or BACKGND MUSIC
2023-06-19 12:30:36 +10:00
ulfhedlundandGitHub c8059403b9 chore(translation): Theme color constants (#3664)
* translated_theme_text

* translated theme text

* translated theme text

* translated theme text

* translated theme text

Changes to allow direct use of translation strings for all theme text, as per code from @philmoz

* Some minor changes

* Proper translations for CZ,DA,DE,FR,HE,IT,JP,PL

* Translations for CN,TW

* Minor correction
2023-06-17 14:05:16 +10:00
3djcandGitHub ba56166ff5 fix(bt): BT CRC allowing reserved bytes to be sent (#3685)
* Fix BT sending crc non "byte stuffed"

* Fix
2023-06-15 10:39:14 +10:00
MichaelandGitHub 27b6f7cc6d fix(simulator): Crash if SBUS chosen as external module type (#3683) 2023-06-15 10:30:03 +10:00
richardclliandGitHub 5288441a82 fix(el18): Audio output should be OFF if no audio playing (#3670)
* Added audio on/off depends whether audio content is present.

* Aligned the mute control with the implementation in the DAC driver.

* Mute Pin should be inverted.

* Removed PCB specific dependencies.

* chore: Formatting and cleanup
2023-06-15 10:07:30 +10:00
3djcandGitHub 285de8a08e fix: SPORT power handling UI on supported B&W radios (#3636) 2023-06-15 10:07:07 +10:00
68061346fa chore: Translation catchup (#3619)
* chore: `DE` Enabled features translation

* chore: Qt Linguist updater, skip SE due to #3456

Updating 'companion/src/translations/companion_pt.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 1 translation(s)
    Same-text heuristic provided 5 translation(s)

Updating 'companion/src/translations/companion_zh_TW.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 27 translation(s)

Updating 'companion/src/translations/companion_pl.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 32 translation(s)

Updating 'companion/src/translations/companion_ru.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 2 translation(s)
    Same-text heuristic provided 42 translation(s)

Updating 'companion/src/translations/companion_de.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 36 translation(s)

Updating 'companion/src/translations/companion_nl.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_da.ts'...
    Found 2960 source text(s) (36 new and 2924 already existing)
    Removed 13 obsolete entries
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_sv.ts'...
    Found 2960 source text(s) (46 new and 2914 already existing)
    Removed 18 obsolete entries
    Number heuristic provided 1 translation(s)
    Same-text heuristic provided 24 translation(s)

Updating 'companion/src/translations/companion_cs.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_fi.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 21 translation(s)

Updating 'companion/src/translations/companion_he.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_zh_CN.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 20 translation(s)

Updating 'companion/src/translations/companion_ja.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 25 translation(s)

Updating 'companion/src/translations/companion_es.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 22 translation(s)

Updating 'companion/src/translations/companion_en.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries

Updating 'companion/src/translations/companion_fr.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Same-text heuristic provided 19 translation(s)

Updating 'companion/src/translations/companion_it.ts'...
    Found 2960 source text(s) (168 new and 2792 already existing)
    Removed 63 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 21 translation(s)

* IT and DE updates

* Translation catchup (Swedish) (#3626)

* Translation catchup #3619

* Translation catchup #3619

* Additional translations for #3619

* Minor changes for PR #3619

* fix: Change back to TR_ENABLED_FEATURES

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>

* FR Translations

* CZ Translations

* DE and IT updates

* Update IT

* PL Updates

* PL update

* Hebrew translations (#3638)

* translation-catchup HE

* TR_SHOW_INSTANCE_ID translation from Offer

* CN/TW translations

* Update JP

* Update CN/TW

* Update DA
2023-06-09 10:43:23 +10:00
zyrenandGitHub 3a32c8d307 fix: Display corruption on Boxer after shutdown (#3654)
* Solve the messy display after Boxer shutdown

Solve the redundant cluttered display on the screen after Boxer is shut down.

* Solve the messy display after F407 B&W Radios
2023-06-08 18:47:15 +10:00