Commit Graph
64 Commits
Author SHA1 Message Date
philmozandGitHub ce1242f1b0 chore(tests): Cleanup tests folder (#4290) 2023-11-10 18:58:53 +10: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
Raphael CoefficandGitHub f9bac7ba9b chore: Remove support for binary storage format (#2900) 2022-12-23 13:05:57 +10:00
Raphael CoefficandGitHub 06c359f096 feat(ACCESS): Configure AUX serial port as "External module" (#2562)
* Enable RX DMA on external module USART

* feat(ACCESS): configure AUX serial port as "External module" (#2562)

This allows configuring the external access mod on runtime rather than by compilation option.

* fix: fetch external module driver
2022-12-14 18:41:32 +10:00
Raphael CoefficandGitHub 6ea408230c fix(telemetry): set warning/critical to default values before reading YAML (#2643)
Otherwise, these values will be 0 if either the old or the new tags are not present, which is the case when coming from 2.7.
2022-10-31 10:38:15 +10:00
RistoGitHubNiel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
9dc4065525 feat: Add support for SpaceMouse mod (6D input knob) (#1853)
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets.
Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
2022-09-18 09:23:48 +02:00
Raphael CoefficandRaphael Coeffic 03cdc879b9 X10: Fix throttle source conversion from binary format 2022-06-25 16:09:04 +02:00
Raphael CoefficandRaphael Coeffic b40441f0c0 WiP: remove legacy fonts 2022-06-11 15:38:08 +02:00
Raphael Coeffic baa4f65d9b Use ExternalPoject_Add() to split by toolchain 2022-04-01 08:56:25 +02:00
Raphael CoefficandRaphael Coeffic 86d1ca4364 Reorganize module type/subType/rfProtocol 2022-03-24 10:40:17 +01:00
Raphael CoefficandGitHub 610326f216 Write 'semver' tag with the current firmware version (#1695)
And remove `version`/`variant`.
2022-03-20 19:18:01 +10:00
Raphael Coeffic 7542e75f1a Fix T8 unit tests 2021-12-17 11:24:05 +01:00
Raphael Coeffic 416084b9e0 Fix unit tests for X7 derivates 2021-12-09 09:20:01 +01:00
Raphael Coeffic 865cf06b0d Revamped switch state checking 2021-12-09 09:20:01 +01:00
Raphael Coeffic 521996df4a Fixed X10 conversion tests 2021-11-26 18:00:50 +01:00
Raphael CoefficandRaphael Coeffic d775e75e81 Patched all conversion tests 2021-11-25 12:10:16 +01:00
Raphael CoefficandRaphael Coeffic 27c0eaf05d Use loadRadioSettings() as it is sets the default module in g_eeGeneral 2021-11-25 12:10:16 +01:00
Raphael Coeffic 26c5c2b3d4 Fix GVar adjust mode 2021-11-10 11:07:04 +01:00
Raphael Coeffic ca31c275bd Fix override channel parameter 2021-11-10 11:07:04 +01:00
Raphael Coeffic 99c7dbf575 Fixed issue with logical switches 2021-11-10 11:07:04 +01:00
Raphael Coeffic 351f5d6d7a Use updated constants for some write functions as well to cope with changed data model 2021-11-10 11:07:04 +01:00
Raphael Coeffic a7ee5f593d Patch radio data version properly (just in case) 2021-11-10 11:07:04 +01:00
Raphael Coeffic 88a9b1c6d9 Fixed multi sub proto parsing 2021-11-10 11:07:03 +01:00
Raphael Coeffic a6ab29d58d Added logical switch tests 2021-11-10 11:07:03 +01:00
Raphael Coeffic 2537c7a004 Restore simulated SD path after test 2021-11-10 11:07:03 +01:00
Raphael Coeffic cc9b146713 Output widget colors as such 2021-11-10 11:07:03 +01:00
Raphael Coeffic c2056c7585 Output source option of Value & Gauge widgets in a symbolic way 2021-11-10 11:07:03 +01:00
Raphael Coeffic cc0af82506 Added draft conversion test for TX16S 2021-11-10 11:07:03 +01:00
Raphael Coeffic 8eed123716 Even more unit tests 2021-11-10 11:07:03 +01:00
Raphael Coeffic f4ae4a6d48 More unit tests 2021-11-10 11:07:02 +01:00
Raphael Coeffic c749fd8681 X9D+ conversion unit test + fixes 2021-11-10 11:07:02 +01:00
Raphael Coeffic 33d6cd95a2 Conversion tests are for EEPROM only 2021-11-10 11:07:00 +01:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
elecpower 2e2392d9fa Fix gtests 2021-08-08 09:51:48 +10:00
Raphael Coeffic f50a91ac70 Fix "wonky timer" 2021-06-09 14:42:17 +02:00
Raphael Coeffic d34d789dcc More fixes 2021-06-09 10:32:05 +02:00
Raphael CoefficandRaphael Coeffic d921e413e3 Fixed timer conversion 2021-06-05 20:29:09 +02:00
Raphael CoefficandRaphael Coeffic 76085baec9 Test custom function play.name 2021-06-05 20:29:09 +02:00
Raphael CoefficandRaphael Coeffic 599bbdf314 WiP: conversions and storage format v220 2021-06-05 20:29:09 +02:00
Raphael Coeffic 188a9bcb77 layoutName is now layoutId 2021-04-09 14:56:50 +02:00
3djcGitHub3djc <Th1sisfmyofmyo>
87cd9047b1 2.4 continued (#8092)
Quite a bit of work on 2.4

Co-authored-by: 3djc <Th1sisfmyofmyo>
2020-11-14 14:55:37 +04:00
3djc 54b5838527 No conversion test from x10 for T16 / TX16S 2020-02-03 09:12:31 +01:00
Bertrand Songis e8bea090ca Travis fix 2019-09-09 20:38:19 +02:00
Bertrand Songis f8e13b5605 Travis fix 2019-09-09 18:24:13 +02:00
Bertrand Songis dd25e82214 Fixes #6718 2019-09-09 16:00:26 +02:00
Raphael CoefficandBertrand Songis 52fca00394 Unit test fixes (#6706)
* remove downloaded gtest archive after unpacking

* moved horus test files to the build directory

* cleaned up X12S test file (removed subdirectory)
2019-09-04 09:27:37 +02:00
Bertrand Songis b005f5dd6c EEPROM conversions tests added to X12S (RADIO) 2019-09-03 13:59:16 +02:00
Bertrand Songis 1cbe73afa9 More EEPROM tests on X9D+ 2019 (ACCESS) 2019-09-03 11:41:41 +02:00
Bertrand Songis 69a3bb01ec One more non regression test for XLite EEPROM conversion 2019-09-03 07:59:42 +02:00
Raphael CoefficandBertrand Songis 5db30ea7bc More unit tests and unified target for all tests (#6661)
* added general settings tests

* fixed pre-219 switchUnlockState (CPN)

* X7 radio settings tests

* updated X10 model

* patched TESTS_PATH to point directly at the complete tests path

* fixed horus general settings switch conversion

* cpn x10 general settings tests

* fixed horus cpn import

* use x10 model from otx file to ease editing with companion

* added make targets "gtests" and "tests"

gtests builds all the tests (radio & companion)
tests builds and executes all the tests (radio & companion)

* fixed companion tests cmake

* fixed gtests-radio target

* fixed commit tests

* fixed converting LS & RS on X10

* fixed converting global functions on X10

* fixed source conversion on X10

* fixed throttle source on X10

* fixed throttle source on radio and companion

* more checks and re-enabled Horus screenData copy

* more tests (X10)

* [X10] restore correct direction for RS & LS

* [horus] convert "Value" widget source

* fixed conversion of ModelHeader::bitmap length

* added missing X10 radio tests to companion tests

* fixed conversion of telemetry sources in logical switches

* [horus] fixed potential crash

* fixed "AND switch" conversion in logical switches
2019-08-26 08:36:31 +02:00