Commit Graph
248 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub 610326f216 Write 'semver' tag with the current firmware version (#1695)
And remove `version`/`variant`.
2022-03-20 19:18:01 +10:00
a1e7d70722 chore: Clean up some issues introduced in #1363
* Clean up some errors introduced in PR #1363

- Cleaning up bad YAML definitions
- Reverted renaming of 'jitterfilter' radio setting in storage/conversions/yaml/ files

* Add a custom attribute to allow for backward compatibility

* Prevent custom attributes without a 'write' function to output a tag

* companion - read but don't write old name

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-03-16 18:07:26 +10:00
bf931a5097 feat: Add facilty for custom throttle warning position (#1395)
* replace magic number for throttle idle with correct define

* settings for custom throttle warning position

* settings fixed not to break byte-aligment of bit-fields

* evaluate custom throttle warning position

* add requested throttle value to warning text

* comment about field alignment in ModelData struct

* Menu for editing custom throttle warning for 128x64 radios
Tested on RM TX12

* Improoved menu display

* move displayed strings to translation

* translation template added for each language

* support for 212x64 B&W radios

* menu for colorlcd
not tested

* corrected translation entry for TW

* corrected handling of padding bits in ModelData structure

* Companion support for custom throttle warning position

* Rebase catchup

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-01-30 15:04:40 +10:00
c3c8a2e3f1 feat: Model level ADC Jitter filter option (#1363)
* ADC Filter - On/off state configurable at the model level

* Updated YAML configuration to match change from ADC Filter feature commit

* Companion changes to support ADC jitter filter to be a model configuration item.

* Renamed jitterFilter field to noJitterFilter.

This better describes the semantic, which is inverted.

* Updated after review

* Re-run generate-yaml

* Changed ADC Jitter filter control on Model to be tri state.
Off, On or use the radio setting

* Adde NOBACKUP() to the added field

* Re-generate yaml_datastructs

* Making the default state to use radio setting/Global value

* Updated after review:
Changing to more consistent naming across firmware and companion.

* Reverted  files that was accidently added to the commit.

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-01-26 20:54:23 +10:00
3djcandRaphael Coeffic d31482c18b Introduce T-pro and function switches handling 2021-12-17 17:07:48 +01:00
Raphael Coeffic 865cf06b0d Revamped switch state checking 2021-12-09 09:20:01 +01:00
16fc05ad8e Fix showing of non-existent pots in warnings group (#1129)
* pots warning enabled fix

* yaml_generator whitespace

* Fix UART_MODE_DEBUG

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-12-07 20:03:28 +11:00
Raphael CoefficandRaphael Coeffic ae552bd6fd WiP: support internal module as a hardware setting 2021-11-25 12:10:16 +01:00
Raphael Coeffic 11621cf736 Added support for EXT3 / EXT4 2021-11-10 11:07:03 +01:00
Raphael Coeffic 288fe158ae WiP fix emergency mode 2021-11-10 11:07:03 +01:00
Raphael Coeffic 397674021e Improved logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic 682aabacec WiP logical switches 2021-11-10 11:07:02 +01:00
Raphael Coeffic b5e9c68056 Improve custom functions 2021-11-10 11:07:02 +01:00
Raphael Coeffic 3da2aee1ff Sensor type & formula 2021-11-10 11:07:02 +01:00
Raphael Coeffic 24b69098c7 Improved swashR, flightModes & sources 2021-11-10 11:07:02 +01:00
Raphael Coeffic b1521579ba Improved telemetry screen type output 2021-11-10 11:07:02 +01:00
Raphael Coeffic 4ee58045e1 Improved mixer source (de-)serialization 2021-11-10 11:07:02 +01:00
Raphael Coeffic b7640a830f WiP pass YamlTreeParser where needed 2021-11-10 11:07:02 +01:00
Raphael Coeffic bcc1f55b37 Use full custom to cope with the strange trainer mode defs 2021-11-10 11:07:01 +01:00
Raphael Coeffic 69c017091a More stringified values 2021-11-10 11:07:01 +01:00
Raphael Coeffic a8f2212f2c Added support for lists (without index value) 2021-11-10 11:07:00 +01:00
Raphael Coeffic 77ff579355 Stick names in own config list 2021-11-10 11:07:00 +01:00
Raphael Coeffic 21bf580f9a Merge switches / pots / sliders names into their config struct 2021-11-10 11:07:00 +01:00
Raphael Coeffic c696313a4e Use simple scheme with direct model slot to model filename 2021-11-10 11:07:00 +01:00
Raphael Coeffic f8ab3770e4 Updated generated yaml parser structs 2021-11-10 11:07:00 +01:00
Raphael Coeffic 7e110ce4b1 Add empty CURR_MODEL_FILENAME in case SD card storage is not used 2021-11-10 11:07:00 +01:00
Raphael Coeffic 985a8760bb WiP 2021-11-10 11:06:59 +01:00
Raphael Coeffic 72859ad6d1 WiP 2021-11-10 11:06:59 +01:00
Raphael Coeffic ea483e4dc9 Use custom [r/w]_mixSrcRaw in ExpoData as well. 2021-11-10 11:06:59 +01:00
Raphael Coeffic cbfff0f168 yaml: switch warning state (de-)serialize 2021-11-10 11:06:59 +01:00
Raphael Coeffic 1ccf6be019 Fixed padding bits 2021-11-10 11:06:59 +01:00
Raphael Coeffic 713579b238 Added basic support for PartialModel load 2021-11-10 11:06:59 +01:00
eshifriandGitHub b1a41438a3 [NV14] Telemetry fixes, use FlySky RX defaults (#856)
* Port from NV14 repository

* Fix altimeter

* Change AFHDS2A default mode to PWM and iBUS

* Fix datacopy.cpp generation for NV14 Windows build

* Cleanup

* Format

* typo fix

* Sngl for alarm and temperature sensor

* remove temperature sensor
2021-10-15 10:18:03 +11: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
Raphael Coeffic e0a8b3d8c3 Added RX options (PWM/PPM, iBUS/SBUS) 2021-09-19 16:17:47 +02:00
Raphael Coeffic e29138f7e3 Draft support internal module NV14 2021-09-19 16:17:47 +02:00
richardclliandGitHub d9d4591008 Merge pull request #495 from EdgeTX/main
Merge from main
2021-07-24 00:23:37 +08:00
Raphael Coeffic a268a9a1d7 [color] Fixed throttle trim switch setting 2021-07-14 19:22:56 +02:00
richardclliandGitHub 2f54a629a2 Merge pull request #289 from EdgeTX/2.4
Merge from 2.4 bug fixes
2021-06-21 15:45:44 +08:00
Raphael Coeffic fd02387cf2 Restored proper data format for splashMode
Resolves #236
2021-06-19 14:01:47 +02:00
Raphael Coeffic 2bd231b103 Fixed RadioData size check
Added 1 byte for ADC sample mode (see Hydra's PR).
2021-06-10 17:36:32 +02:00
Raphael Coeffic 33d8267489 Merge branch '2.3' into 2.4
# Conflicts:
#	radio/src/datastructs.h
2021-06-10 17:31:39 +02:00
Richard Li cc92f25046 Fixed NV14 build, added flysky build script and target in build-gh.sh 2021-06-09 16:10:45 +08:00
Raphael CoefficandRaphael Coeffic 599bbdf314 WiP: conversions and storage format v220 2021-06-05 20:29:09 +02:00
HydraandRaphael Coeffic d5895f6025 Move new field to the end to avoid eeprom corruption for existing users. 2021-05-20 23:24:04 +02:00
HydraandRaphael Coeffic 2f27c3c1a6 Add OneBit mode to HARDWARE menu. OneBit mode can help if your radio
has a slow inverter circuit by changing the UART sampling behaviour.

* It was found that the X9D+ and X7 (maybe others) have a slow inveter
that messes up reception of fast (400,000baud) UART signals.  On the
scope the rise time of the signal is very long.
* See RM0033 24.3.3 Receiver / Selecting the proper oversampling method.
Page 631.


Also note that reducing the pull-up resistor from 10k to 1k at R82
(X9D+) / R406 (X7) will also help with the rise times.  However on the
X7 changing the resistor is not enough, OneBit is needed too.
2021-05-20 23:24:04 +02:00
Raphael Coeffic c3989f7a66 Compilation fix 2021-05-16 13:14:34 +02:00
Raphael Coeffic 2f5b522413 Merge branch '2.3' into 2.4 2021-05-16 12:55:21 +02:00
Raphael Coeffic 413b97c9d6 Refactor layout / widget interface
This allows to cut loose quite some dependencies on headers.
2021-04-18 07:58:28 +02:00
Raphael Coeffic 188a9bcb77 layoutName is now layoutId 2021-04-09 14:56:50 +02:00