Commit Graph
502 Commits
Author SHA1 Message Date
philmozandGitHub e807ccbebf refactor: key handling (#4849) 2024-05-27 18:33:53 +10:00
3djcandGitHub 79d2727508 fix: Jumper T12 switches (#5040) 2024-05-20 19:30:09 +10:00
fe8e092d30 fix(x9e): missing F3/F4 pots, slider hwdef changes (#5012)
Co-authored-by: elecpower <neilh713@tpg.com.au>
2024-05-19 18:19:12 +10:00
0d6ce7d22d fix(yaml): flex switch warnings (#4949)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
2024-05-03 13:14:50 +10:00
philmozandGitHub 0ec64c963f fix(lua): add missing EVT_PAGEDN_xxx events for Lua (#4829) 2024-04-01 11:18:14 +10:00
philmozandGitHub 6c5eada23a refactor: FLASH size optimisations for B&W (#4827) 2024-04-01 09:43:50 +10:00
3djcandGitHub 46f484e6e5 fix(bw): add missing UA characters, mapping (#4823) 2024-03-31 07:34:29 +10:00
Peter FeerickandGitHub 80f5d3ddc6 fix(cpn): llvm clang dll filename change breaking libsimulator builds (#4775) 2024-03-24 07:33:53 +10:00
84a90a75e4 feat: support Jumper T20 V2 (#4701)
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2024-03-14 19:08:59 +10:00
Peter FeerickandGitHub ab2b773b14 chore(cpn): simulators for EL18, TProV2, Pocket, T20 (#4687) 2024-03-14 19:07:52 +10:00
Peter FeerickandGitHub 46f9cfc0cd fix(tlite): default switch configuration wrong (#4738) 2024-03-14 19:07:15 +10:00
b40c40d525 feat: Initial support for UA language translation (#4415)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2024-01-25 10:12:22 +10:00
dfaad73070 fix: Throttle idle trim handling for surface, enable MT12 tests (#4520)
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
2024-01-21 13:53:25 +10:00
3djcandGitHub 1b7044a134 feat(fw): Jumper T14 support (#4543) 2024-01-17 12:03:21 +10:00
Neil HorneandGitHub 5dbd612e66 fix(x9d+): Default pots and sliders config (#4489) 2024-01-03 10:09:25 +10:00
Raphael CoefficandGitHub 6b1256db66 chores(lua): Generate keys definitions (#3923) 2023-12-20 21:28:40 +10:00
cc17046e7a feat: Flysky PL18 Support (#4105)
Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
Co-authored-by: rotorman <risto.koiva@web.de>
Co-authored-by: Xy201207 <yaoxu@flysky.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-12-06 09:00:44 +10:00
Raphael CoefficandGitHub f0b0c3d906 fix(lua): Legacy input names (#4310) 2023-11-13 08:28:38 +10:00
ca5355e0c7 feat: Add support for Radiomaster MT12 (#4277)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-11-04 18:18:17 +10:00
b48e07026d feat: More flexible ADC inputs (#3870)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-11-02 11:07:53 +10:00
kobakirillandGitHub 7322084fb8 feat: Add Russian translation to firmware 🇷🇺 (#4067) 2023-10-20 12:13:45 +10:00
b22a1b5d32 feat: Support for WS2812 RGB LEDs (#3909)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
2023-10-14 14:06:55 +10:00
3djcandGitHub c270ec18bf fix: Disable by default SG/SH on TPro V2 (#4191) 2023-10-11 18:22:04 +10:00
philmozandGitHub 837677b3ef feat: Convert PPM_UNIT build option to runtime radio setting (#3993) 2023-10-10 19:47:50 +10:00
4c1de94a6b fix(b&w): Fix radio UI display for switches on X9D, X9D+ and X9D+2019. (#3996)
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-09-29 10:27:44 +02:00
ef6316ef6c chore(radio): Move const data from RAM to FLASH. (#4098)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-09-29 10:19:06 +02:00
Raphael CoefficandGitHub 87df8a4f2c refactor: SD card SPI HAL (#3957)
* refactor: SD card SPI driver

* Removed SPI and DMA StdPeriph drivers

* Allow for disabling SPI DMA support

* Disable SPI sdcard CRC support

* Fix 2MHz timer on NV14

* Shared VS1053b driver

* Fix: SPI2 uses PCLK1

* feat: new generic diskio API

* More generic SD_CARD_PRESENT()

* Fixes

* Flush incoming block on token mismatch

* Scratch buffer test

* Incredible hack to re-sync sd card

* fix: SDIO driver
2023-09-23 19:31:56 +10:00
Raphael CoefficandGitHub ce03cbf651 fix: yaml generator for clang 15 and up (#4076)
* fix(yaml): use find_clang as for datacopy

* fix: use library path provided by clang python package first

* fix: anonymous structs and unions

* fix: typedefd struct attributes
2023-09-21 15:17:42 +02:00
c4f1e7127d chores(flysky): Separate AFHDS2A and AFHDS3 into 2 different module type (#3783)
* chores(flysky): separate AFHDS2A and AFHDS3 into 2 different module type

This should allow to remove some of the hacks added earlier.

* chore: Add some EL18 CI bits

* fix(afhds): cmake defs

* fix(ci): add el18 to commit-tests.sh

* chore(cpn): separate AFHDS2A and AFHDS3

* chore(cpn): remove binary import of afhds and legacy fxFreq field for afhds3

* fix(cpn): limit available internal afhds protocols to those supported by hardware

* chore(cpn): update Flysky int module test

* fix(cpn): compile error

* fix(cpn): afhds2a max channels

* fix: TR_MODULE_PROTOCOLS

* enh(cpn): more support for afhds2a and 3

* fix(cpn): rebase compile error

* fix(cpn): bit indexes

* fix(cpn): emi toString

* fix(cpn): limit available internal afhds protocols to those supported by hardware

* enh(cpn): add support for Flysky EL18

* fix(cpn): available protocols

* fix(cpn): rebase moduledata

* chore(cpn): add module fields to model print

* Separate AFHDS2A and AFHDS3 UI settings.

* Fix AFHDS3 conversion from old subtype value.
Fix 'Channel Range' layout on portrait LCD.

* Fix name.

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-09-07 19:24:03 +10:00
3djcandGitHub c2d8291e49 feat: Add support for RadioMaster Pocket (#3892)
* RM Pocket support

* Further Pocket changes

* Production readiness

* chore: Consistent formatting

* chore: `ENABLE_SERIAL_PASSTHROUGH` enables `CLI`

* chore: Add to Buddy

* fix: merge wtf
2023-08-14 12:10:22 +10:00
Raphael CoefficandGitHub 574369aca4 fix: Use keysGetMaxTrims() instead of MAX_TRIMS (#3860)
* fix: use keysGetMaxTrims() instead of MAX_TRIMS

* feat: add support for virtual trims

This is necessary for radios like X-lite where half of the trims are simulated
2023-07-30 14:18:58 +10:00
Raphael CoefficandGitHub 76423370cd fix(lua): Add missing switch constants (#3803) 2023-07-30 14:03:35 +10:00
Raphael CoefficandGitHub 6a8141f859 chore: JSON Python generator docs (#3775) 2023-07-14 14:57:37 +10:00
Raphael CoefficandGitHub 1bb27e7011 fix: PWM gimbals initialisation and inversion (#3745)
* fix: PWM gimbals initialisation and inversion

* feat: add periph clock support in PWM stick driver
2023-07-14 14:54:32 +10:00
3djcandGitHub 7f669f12d9 feat: Add initial Jumper T20 support (#3726)
* Jumper T20

* Fix center beeps

* Add option to pinch top trim as well to bootloader

* chore: Regenerate yaml

* chore: Add entry for Buddy

* Jumper T20

* Foldable section for fonction swith and fix preflight pot checks

* Remove duplicated entry

* Rename "function switches" to "customizable switches"

* chore: Add translations

* chore: Update translations

* chore: Update Companion translations/wording
2023-07-07 10:44:14 +10:00
3djcandGitHub 0934935cdb fix(b&w): Center beep settings on 212 display not working (#3743) 2023-07-05 21:03:32 +10:00
raphaelcoefficandPeter Feerick 261c0213f3 fix: NV14 uses active-high for keys and trims 2023-07-04 17:04:10 +10:00
3djcandGitHub 050123b928 feat: Initial support for Jumper TPro V2 (#3718)
* Jumper TPro V2

* Small Fixes

* Small Fixes

* Small Fixes

* fix: ENABLE_SERIAL_PASSTHROUGH enables CLI

* chore: Add missing entry for tprov2

* Cosmetics
2023-07-01 17:25:10 +10:00
3djcandMalte Langermann 5c9b847ef0 More switch definitions 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 22c09dbe6e fix: add NV14 switch definitions 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 3cd6465bb1 fix: missing/wrong entries in HW definition 2023-06-25 14:32:39 +02:00
3djcandMalte Langermann c528172a19 Fix tlitef4 compilation 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
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
Paul TapperandGitHub 2b3559dcea fix(build): Non-empty attribute causing clang 16+ build error (#3437)
empty for anonymous structures but contains a descriptive
string in brackets. Resolves the build error "Cannot handle
non anonymous unions" from this script.
2023-04-05 10:29:05 +10:00
philmozandGitHub 044344f18f fix(build): Impove yaml generator libclang compatibility (from PR#2631) (#3402) 2023-03-26 19:06:15 +10:00
3djcandGitHub bc8087cbf1 feat: Add Radiomaster Boxer (#2877)
* Radiomaster Boxer

* chore: Add Build system bits

* chore: `EEPROM_VARIANT` no longer used
2022-12-31 16:45:09 +10:00
3b2f07ae85 fix: Danish special characters on B&W radios (#2271)
* Dannish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* chore: Reset header to `copyright-header` template
`tools/copyright-header.txt` template is what should be used.
Also added line at EoF to make git happy

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-09-07 20:15:08 +10:00
zhaobingandPeter Feerick 0219426b26 Add LR3PRO as an independent target 2022-08-20 10:59:50 +10:00