* feature request #1635
- added MIN (-MAX -> -1024) as source
* fix rebase
* fix rebase
* change to use language strings for MIN/MAX instead of instance
updated CN and TX language file for MINuse -RESX for MIN instead of magi numbercode cleanup
* updated test sources
* updated JP language
* JP language: changed translation text
* updated HE language translations
* fix: YAML timer handling
* chore: improve YAML set timer handling
* chore: improve timer handling
* feat: only offer defined timer for set and reset functions
* feat: only offer defined timer for set and reset functions (bw)
* chore: cosmetics
* Rationalise module size handling
* Compile fix
* DSM2 and DSMP exist only in JR size
* XJT Lite and R9MP require usart
* Fix comment
* Enable no external module choice
* Save some flash
* TProV2 does have a small module
* T20 has a small module
* chore: Define managed by cmake
* fix: X9D+2019 has a JR Micro bay
---------
Co-authored-by: Peter Feerick <peter.feerick@gmail.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
* 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
* WiP: new module interface
* WiP: softserial timer DMA
* WiP: setup() and send() in one step
and remove methods specific to internal or external module
* fixes and extra port config
* horus targets
* module ports have moved
* T8 support (only internal module)
* fix nv14
* stupid GCC....
* disable BT
* remove nv14 telem driver
* remove old aux serial driver
* Move module buffers out of pulses.h
* Soft serial fixes and PXX1 support
* Fixed PPM module output
* Fixed CLI
* compilation fixes
* Ported bluetooth and flysky gimbal to new serial driver
* Re-enable soft-serial RX
* fixes and cleanup
* nv14 fixes
* Fix flysky gimbals
* Ghost module
* 16 bytes of RAM
* Remove getByte from module API
* Ghost cleanup
* fix: _half_duplex_input() must be called after usart init
* WiP
* more cleanup
* Remove board specific settings from PXX1 / PXX2 drivers
* A bit of PXX2 header cleanup
* Add support for OVER8 and ONEBIT
* Add some support for inverters (NV14 / EL18)
* Support NV14 power fixes in generic board
* Fix polarity handling
* Fix RX DMA
* Fix mixer not running
* Add soft-serial polarity control
* Quick fix for telemetry polling while module port is changed
* Fix bootloader DEBUG
* Fix MPM telemetry
* Fix pulse start
* DSM2 soft-serial fallback
* DSMP async module restart
* Fix CRSF LUA upstream
* Remove global variable telemetryProtocol
* Use HAL/LL constants
* Fix various issue with AFHDS3 and NV14/EL18 internal module
* Fixed S.PORT unit tests
* fix: update widx after writing at current index
* fix: init error condition
* Fix: possible infinite loop in _find_port()
* Add support for bidir S.PORT init
* Add support for "getLastByte" in HW serial driver
* PXX1: Add support for S.PORT based on IDLE callback
* Fix rebase error
* Fix softserial _rx_fifo_push()
* Add softserial support for waitForTxCompleted()
* Fix MPM flashing (internal / external)
* Fixed external MPM
* Activate RX DMA on internal module
Seems to work with serial passthrough without issues, at least on the L3R PRO.
* Fix softserial DMA on stdlcd F4 targets
* Add softserial support for 32bit timers (mostly TIM2)
* More precise soft-serial
* Fix MPM update using inverters & HW uart
* Raise S.PORT DMA/USART IRQ prio to achieve faster switching to input
* Remove useless delays
* Fix flashing external ELRS module
* Added a retry mechanism for FrSky S.PORT update
* Remove useless enableRx()
* External FrSky modules are all flashed via S.PORT
* Remove power management unit update
This was only used on the first batch of X-lite.
* 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
* feature(colorlcd): antenna selection
* fix: let's assume all internal XJT modules used in horus targets are either X10 or X12S type
* fix NV14 compilation
Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
* feat(cpn): Initial iFlight Commando8 support
* fix: Commando8 doesn't have trainer port
* feat: Add Simulator for iFlight Commando8
Also some minor code re-order for BetaFPV LR3PRO
* chore: EEPROM_VARIANT not used
* chore: Remove EEPROM bits that don't seem needed
* fix: Build simulator plugin
* fix: Simulator PGUP/PGDN the right way around
* fix: Keep trainer mode in cpn for MPM, etc
* feat: Remove TR# mixsrc when trainer disabled
When trainer mode is not enabled, there is no point
showing the TR# mixer sources. Once you enable a
trainer option, they will become visible again.
* fix: Add missing "Input" check for B&W radios
* fix(cpn): Trainer mode default is off
* chore(cpn): If trainer mode off, hide TR/PPM srcs
* (cpn) Refresh all source lists on change of trainer mode
Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-09-25 19:51:35 +10:00
RistoGitHubNiel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets.
Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
* fix: Don't allow select MULTI_TRAINER if no MULTI
Fixes#1563 by ensuring Multi Trainer opt is not shown if no MPM
is enabled, as well as if MPM suport is not even compiled in.
* chore: Uppercase "OFF" or equiv for Trainer OFF
* Do not list OFF on VCP menu if internal RF module is set to CRSF to allow pass-through flashing.
Set USB-VCP automatically to CLI when CRSF mode is selected for internal module and it was previously OFF. Activate CLI when iCRSF is selected.
* Companion part
Co-authored-by: elecpower <neilh713@tpg.com.au>