Commit Graph
100 Commits
Author SHA1 Message Date
Peter FeerickandGitHub 335c0a3a0a chore(colorlcd): Page header unification and other cosmetics (#3326)
* chore: Change Radio setup page headers

* chore: Model Setup page header changes

* Main menu, Model Manager, Model Templates
Including needed translation strings

* Model telemetry sensor edit page
Taking into account sensor value shown in header

* chore: Change "Edit Labels"
Resolves #3014

* fix(b&w): "Rx channel ord" -> "Def chan order"
Resolves #3348

* chore: Update translations

* chore: Change to prefered "Manage Models"

* chore: Cleanup

* chore: Move some colorlcd-only strings
May or may not save some flash memory

* fix: Missed a translation string rename
2023-03-23 11:53:27 +10:00
Peter FeerickandGitHub 7d1a9caee0 fix(gh): Workaround bug in GitHub runner for Mac Cpn action (#3203)
* fix(gh): Mac Cpn action dependency reorder

* Another possible fix
2023-02-17 22:06:12 +10:00
Peter FeerickandGitHub 6de37d9b8a fix(boxer): Power LED sequence BLUE => GREEN (#3201) 2023-02-17 19:25:33 +10:00
Peter FeerickandGitHub 7c7d541309 fix: loadRadioSettingsYaml not honoring chk flag (#3197) 2023-02-17 16:18:39 +10:00
60cdb897ee feat(cpn): Radiomaster Boxer support (#2910)
* feat(cpn): Initial Radiomaster Boxer support

* fix(build): Halt if invalid simulator plugin specified

* fix: 6POS not correctly defined

* chore: Less EEPROM stuff needed

* Start of simulator support

* Enable left buttons and fix area mapping of page up and down

* fix(cpn): Internal reference to pots

---------

Co-authored-by: elecpower <neilh713@tpg.com.au>
2023-02-11 20:10:12 +10:00
Peter FeerickandGitHub b185ba24ee fix(color): Duplicate selected theme, update color list (#3122)
* fix(color): Duplicate selected, not current theme

* fix: Update color list if theme edited
2023-02-05 13:57:31 +10:00
46cc979875 fix: Regenerate yaml, carryTrim => trimSource cleanup (#3121)
PR #2995 didn't take into account the data model storage actually does change when you change a variable name. 
Boxer yaml generation was missed in earlier PR. 

* chore: Run `generate-yaml.sh`

* chore(cpn): carryTrim -> trimSource

* fix(build): Boxer missing from `generate-yaml`

* dodgy attempt to read old carryTrim

* fix: Don't break the byte boundary + reorder

* fix(yaml): indentation for attributes that should not be output

* chore: Regenerate YAML after rebase

---------

Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
2023-02-05 13:46:02 +10:00
Peter FeerickandGitHub 93865ba7b2 fix: B&W MPM protocol offset, subprotocol lists too long (#3112)
* fix: Off by one error for protocol list
* fix: Incorrect range for some Frsky subprotocols
2023-01-27 15:28:04 +10:00
15dca01f42 fix(color): Inactivity alarm suffix proper grammar (singular/plural) (#3064)
* Add translations for "minutes"

* Add missing PLURAL2

* fix grammar

* Next attempt

* include limits.h

* minor cleanup

* Addin some translations for some languages based on inputs

* chore: Remove BREAKSPACE, add ignore flag
And some minor cleanup / formatting

* chore: Revert `TR_USE_VARIABLE_PLURAL`
Use `TR_USE_SINGULAR_IN_PLURAL` properly... thanks @eshifri

Co-authored-by: eshifri <eshifri@hotmail.com>
2023-01-20 12:07:08 +10:00
Peter FeerickandGitHub 539b407b58 feat(color): Confirm before duplicate or saving model as template (#2931)
* fix(color): Confirm before duplicating model

* fix(color): Confirm before saveAsTemplate
2023-01-01 11:50:18 +10:00
Peter FeerickandGitHub 8d5a509ce0 fix(translation): Add SpaceMouse, External Module plus other fixups (#2940)
* fix(translation): Add SpaceMouse/External Module
Add missing entries as needed

* chore: Update PL

* chore: Update DE

* chore: Update IT
2022-12-25 10:34:18 +10:00
Peter FeerickandGitHub 4ad5d87dfc chore: Bump minor version number
Hopefully @raphaelcoeffic won't notice this 🤭
2022-12-21 21:43:57 +10:00
5cf2141b59 chore(cpn): Run Qt Linguist updater, translation updates (#2685)
* chore(cpn): Run Qt Linguist updater

* Fix translation errors

* fix: Reference all available translations

* Add Chinese to available radio voice languages

* fix(cpn): Add missing voice languages to firmwares

* Add translation to analogs

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-12-21 10:41:54 +10:00
Peter FeerickandGitHub efe2ddd2b1 fix(ci): MacOS Companion python clang pkg misisng 2022-12-14 18:16:45 +10:00
Peter FeerickandGitHub 7bdb32a8cd chore(gh): Add 2.8.0 to bug reporter 2022-12-01 10:30:35 +10:00
Peter FeerickandGitHub 14c9a6fc9a fix(build): Fail on unknown targets rather than build x9d (#2760)
* fix: Fail on unknown target rather than build x9d

* fix: Add a space between parameter blocks
2022-11-30 15:58:55 +10:00
37b1b2ee28 fix: Always show GPS button in radio setup (#2732)
* fix: Always show GPS button in radio setup
It is related to GPS telemetry, not internal GPS.
This probably needs to implemented differently in the future.

* de optimization (#2737)

* de optimization

since the GPS button is now displayed by default (#2732), the labels for the "Alarms" and "LCD" are much too long and thus GPS is pushed into a new line. This looks unattractive and is a waste of space

* Update de.h

* chore: Cleanup

Co-authored-by: ParkerEde <ralf@krusecity.de>
2022-11-16 20:16:04 +10:00
Peter FeerickandGitHub ab5d4f0e20 chore(github): Node.js 12 based actions deprecated (#2513)
* chore(github): Node.js 12 based actions deprecated

* chore: Remove more dependency ver warnings
 - `jurplel/install-qt-action@v3` finally released
 - `actions/cache@v1` is thus no longer needed, so its warning gone also
 - leaving on only `maxim-lobanov/setup-xcode` remaining
2022-11-15 16:39:24 +10:00
Peter FeerickandGitHub 579758a221 fix(color): Outputs lines not updating after reset (#2661)
`invalidate` is not updating all the line elements
2022-11-05 20:25:36 +10:00
Peter FeerickandGitHub 8ce3612f9d chore: Translate some more radio firmware elements (#2607)
* feat: Translate time modes using exist. trans. str

* fix: Define `STR_MONTHS` once not four times

* fix: Translatify `Show mixer monitors` toggle

* chore: Add `TR_THROTTLE_START`

* chore: Update `IT`

* chore: Update `DE`
2022-11-01 13:12:06 +10:00
Peter FeerickandGitHub 58742b526e fix(gh): Don't install arm-none-eabi-gcc pkg (#2636)
`mingw-w64-i686-arm-none-eabi-gcc` is not actually needed.
2022-10-28 13:01:02 +10:00
Peter FeerickandGitHub c8d6a50685 feat(color): mix/output bars show '0%' (#2592)
Resolves #2575
2022-10-17 22:12:35 +10:00
Peter FeerickandGitHub 73aa2e5775 fix(cpn): Handle mixer scripts with no inputs def. (#2523)
Because it seems like I managed to configure it just so
and Companion didn't like that.
2022-10-12 19:23:27 +10:00
Peter FeerickandGitHub d349c281c3 fix: Style/color tweaks (#2441)
* fix: Make text color for active PRIMARY1, not 2

* fix(nv14): Portrait channel monitor single column

* fix: Tweak channel bar icons and horizontal layout

* fix: Move channel bars down slightly

* fix: Active button text color
2022-10-12 12:51:37 +10:00
e90cd0f440 feat(X10/X12S) Int/Ext Antenna UI (#1765)
* 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>
2022-10-11 21:48:46 +10:00
Peter FeerickandGitHub af45201f64 feat(cpn): iFlight Commando8 support (#2244)
* 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
2022-10-10 12:59:28 +10:00
Peter FeerickandGitHub 78e2bb05a2 feat: CPP Widget names also translatable (#2454)
* feat: CPP Widget names also translatable

* chore: Add cn, cz, de, it, se, tw translations
2022-10-09 20:39:05 +10:00
Peter FeerickandGitHub 9fa9a0c594 fix(color): Adjust about dialog size (#2497)
Fixes #2496

* Adjusts size of dialog to look better on NV18/EL18
* Adjusts size of dialog content depending on presence of version tag

I'm sure this could be done better using LVGL,
but is enough for now IMO.

Also let the auto-formatter loose on this file.
2022-10-09 19:51:41 +10:00
Peter FeerickandGitHub 69d6b27e59 fix: fw.json missing comma 2022-10-09 14:16:50 +10:00
Peter FeerickandGitHub e1a0978a56 chore: Add entry for EL18 even though it uses NV14 fw 2022-10-09 14:16:24 +10:00
Peter FeerickandGitHub 228461acaf fix(color): Trainer stick labels not updating (#2401)
Stick labels for trainer mode should match default channel order setting
2022-09-29 19:26:54 +10:00
Peter FeerickandGitHub 40018cdb69 fix(color): Radio tools buttons fit screen better (#2377) 2022-09-28 12:26:10 +10:00
3969b2b7e3 feat: Remove TR# mixsrc when trainer disabled (#2323)
* 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
Peter FeerickandGitHub 2d608bac32 fix: TX-12MK2 status led sequence, Zorro BLUE/GREEN swap (#2346)
* fix: Zorro LED_GREEN and LED_BLUE GPIO swapped

* fix: TX12-MK2 Blue=>Green led sequence also
Also add Zorro since it's GPIO has been changed.
2022-09-23 13:00:01 +10:00
Peter FeerickandGitHub bccae96917 chore: Add some translation strings + update helper script (#2328)
* fix: Update translation helper for LVGL changes
Also:
- make paths more OS agnostic
- auto-ignore `untranslated.h` since adding to all translations
- flag required parameter as required

* fix: Add more Label related translatable strings

* chore: Italian translations from @robustini
Also some minor formatting tidyup

* chore: Swedish translation from @ulfhedlund

* chore: Danish translation from @HThuren
2022-09-20 12:35:19 +10:00
Peter FeerickandGitHub d54e656608 fix: Don't allow select MULTI_TRAINER if no MULTI (#2299)
* 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
2022-09-14 12:34:43 +10:00
Peter FeerickandGitHub d9c7cfae6f fix: Show degree symbol ° instead of @ (#2199)
* fix: Use degree symbol instead of `@`
For temperature and degree units, @C, @F and @ were being shown, rather than °C, °F and °.

Also hoping this will also resolve the GPS sensor showing @ instead of ° as mentioned in #2163

* fix: B&W need prior `@` for degrees

* fix: `dBm` missing from some translations
2022-09-14 12:28:48 +10:00
b4e1ceb4f8 fix(MPM): Various UI elements for MPM opts weren't updating correctly (#2209)
* fix: Get current values for MPM options

* fix: Don't show sub-proto dropdown when empty

* Add suggested call to `update()`

* Add callback to refresh when subtype changed

* Trip `SetValueHandler` rather than setting value
Thank you to @raphaelcoeffic for the hint ;)

* fix: Saving values when changed is a good idea!

* Load option flags properly when using internal proto list

* NumberEdit fields don't implement LV_EVENT_VALUE_CHANGED, use update() instead

* Fix checkbox behaviour

* Fix autobind checkbox after switching away from DSM

* Fix more parameter needing update on MPM sub-proto changes

* fix: Also update servo rate if present

* fix: Channel mapping needs updating also

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-09-05 21:56:24 +10:00
Peter FeerickandGitHub bce73a9398 feat(B&W): Lua tools list sorted alphabetically (#2258)
Resolves #1886
2022-09-03 09:01:46 +10:00
Peter Feerick 87b3614798 fix: Drop the path from nightly release zips
Nightly release zips were including a subfolder, as
opposed to PR and normal releases.
2022-08-10 14:44:08 +10:00
Peter FeerickandGitHub 2c455e0623 chore(github): Add 'Nightly' choice to bug form 2022-08-08 12:15:38 +10:00
a3d44d7b09 chore: Remove "OFF" from protocol lists (#2186)
* chore: Remove "OFF" from protocol lists

* Fix subType setting for X9D+2019

* fix: Chan start and count for ISRM, dup type set
Channel start and count wasn't being updated for ISRM.
Also remove duplicate modulke type setting, which was the
cause of an earlier bug that was worked around on 128x64

* fix(colorlcd): Shorter ACCST opts string crash

* chore: Formatting only

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-08-05 21:21:56 +10:00
Peter FeerickandGitHub d266689d25 chore(github): Build win32 companion on push to main
It's enough to build the win64 companion on PRs for testing, and this keeps the win32 builds from going stale, and may also keep it's build cache form from being cleared.
2022-07-22 11:02:57 +10:00
Peter FeerickandGitHub 7d983f6fa8 chore(yaml): PR#2064 didn't regenerate files (#2133) 2022-07-17 18:59:21 +10:00
Peter FeerickandGitHub ee258cc8d2 Fix references to "USB Serial(Debug)" and use correct header text (#2109)
* fix(translation): VCP instead of Debug for USB Ser
* chore(translation): Use ETX header boilerplate txt
2022-07-03 14:12:16 +02:00
Peter FeerickandGitHub b0e3cb015f feat(minor): Better showing of version info in firmware and cpn, remove seperate cpn32 build script (#1913)
* fix: Prevent potential wordsplitting of variables

* chore: Remove need for separate cpn 32bit script

* Build script tag/branch/PR auto-detection

* Teach companion about VERSION_TAG

* Update some constant names

* Only one companion build script

* Actually use `VERSION_SUFFIX` in about screen 🤦

* Add space

* Remove line that was only for testing 32bit build

* Remove hyphen between win and bits

* Show codename in Settings -> Version

* cpn: Only show codename on tagged versions

* Update about screen also

* Double quotes around codename on colorlcd

* Update copyright year

* About screen should use VERSION_TAG when set
2022-05-08 16:24:31 +10:00
Peter FeerickandGitHub 3d89f73394 fix: Radio Settings/SYS module version info lockup (#1901)
Fix SYS>VERSION>Modules / RX version - and pressing  "PAGE>" or "PAGE<"
and then press enter to EXIT, could result on EM.
2022-04-27 11:08:07 +10:00
Peter FeerickandGitHub 5957745518 fix: XJT Lite module type being replaced with XJT (#1904)
Fixes #1899
2022-04-27 10:58:34 +10:00
Peter FeerickandGitHub 3493d69c5b chore: Further tweaks to version string (#1895)
* fix: Only define SUFFIX if PR or BRANCH build
Also, only define `VERSION_TAG` if VERSION_TAG exists.

* fix: Omit GIT SHA for colorlcd also if a tagged build
2022-04-26 10:32:01 +10:00
Peter FeerickandGitHub f5b1b53294 feat(TX16S): User options for AUX1/AUX2 serial port power (ON/OFF)
User controllable serial port power for TX16S
2022-04-24 11:53:31 +10:00
Peter FeerickandGitHub 0fabd8c601 build(cmake): Allow spliting of toolchains, which will help with multi-platform support
CMake: Use ExternalProject_Add() to split by toolchain

Splits targets between native and cross-compiled targets, provides a cleaner solution to problems raised by compiling for example on Apple silicon, and better managing dependencies by allowing for object libraries in a cleaner way.
2022-04-24 10:29:31 +10:00
Peter FeerickandGitHub 1ae3e0bbc5 chore(github): first draft of yml bug form
First pass - transmitter list is not exhaustive.
2022-04-21 15:00:50 +10:00
Peter FeerickandGitHub 44abfeac16 chore(github): Help is not via issues 2022-04-21 14:54:07 +10:00
Peter FeerickandGitHub b9961e12fa chore(github): Don't allow blank issues, links to forum and discord 2022-04-21 11:50:19 +10:00
Peter FeerickandGitHub cc62816b47 Add Conventional Commits badge 2022-04-19 14:24:55 +10:00
d9b51f8ecf feat: Deadzone option for NV14 sticks (#1777)
Imported from open-flysky/Flysky-OpenTX-Test-Branch

* companion: Don't nuke `stickDeadZone` setting

* Implement data storage properly

* Add missing check for NV14 storage struct sizes

* Formatting

* Use one less byte in the packed data struct
Thanks @raphaelcoeffic :)

* Move setting of stickDeadZone default

* Use a Choice combo rather than NumberEdit

* Good riddance magic number

* Also set default stick zone if setting is missing

* Teach tests about `STICK_DEAD_ZONE`

* Tweak choice width

* Cpn NV14 add stick dead zone to hardware and section labels

* Cpn NV14 align default pot names to radio

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-04-06 10:30:20 +10:00
Peter FeerickandGitHub b6dd2fe6bd colorlcd: Left align input names on Model Inputs tab (#1775) 2022-04-05 18:29:31 +10:00
Peter FeerickandGitHub ee5226bb61 fix: Use setAvailableHandler to filter blMode menu (#1798) 2022-04-05 18:19:59 +10:00
Peter FeerickandGitHub d7d1e446bd fix: Only use delayed failsafe check with MPM (#1786) 2022-04-03 09:17:07 +10:00
Peter FeerickandGitHub 8b515ed998 chore: Sync gitpod image version with gh actions 2022-04-02 11:17:04 +10:00
Peter FeerickandGitHub dbb9a5e4b2 chore: Introduce FreeRTOS Software timers
Introduce FreeRTOS Software timers
2022-03-31 16:26:38 +10:00
Peter FeerickandGitHub 7b617c1b50 fix: LUA=N compile fixes, radio hardware tab bottom padding (for touch) (#1755)
* Fix `LUA=N` compile breakage and tidyup on NV14

* Alignment and padding
Resolves #1751 but incomplete solution,
as the real cuplrit appears to somehow
be in `InternalModuleWindow`
2022-03-31 11:52:17 +10:00
Peter FeerickandGitHub b54ad7169a feat: Option for inverting rotary encoder direction (#1690)
* feat: Add option for rotary encoder direction
Based heavily on opentx/opentx#8852 by @3djc

* companion ui elements

* Cleanup

* Hook up UI, reading setting from yaml

* Teach simulator about rotEncDirection

* Simu and radio default scroll direction correction
Otherwise the "default" would be the opposite to how it has always been

* Remove what will be a confict with fix in #1586

* Wasn't using rotEncDirection consistently

* Zorro RE dir is opp to TX16, TX12, TPro, X9D+2019
2022-03-22 16:14:57 +10:00
Peter FeerickandGitHub 33f761c17b feat: Configurable external CRSF baud rates (see #1581)
CRSF modules baudrate
2022-03-22 16:06:57 +10:00
Peter FeerickandGitHub c327c6c0db fix: TPro FS showing in global funcs and MPM protocol list updates (#1705)
* Init contrast earlier for 128 B&W screens
https://github.com/opentx/opentx/pull/8882

* fix: TPro - No FS in global functions
https://github.com/opentx/opentx/pull/8845

* Missing IS_SWITCH_FS defintions

* Update MPM fallback SUBTYPE and OPT strings

* Custom MPM proto should not be processed
2022-03-21 20:57:04 +10:00
Peter FeerickandGitHub cc609a6a3b feat: Major serial driver re-write - see #1089 for details
Serial refactor
2022-03-21 19:58:26 +10:00
Peter FeerickandGitHub fe37d428b8 fix: colorlcd "Global" bg image not being loaded at theme change (#1684)
Fixes #1680
2022-03-16 21:21:53 +10:00
Peter FeerickandGitHub 7abc59e626 feat: Pressing power button resets backlight timeout (depending on opts) (#1676)
* Power button resets backlight timer on colorlcd

* Link to backlightMode opt, and not just colorlcd
2022-03-16 21:21:33 +10:00
4571c7b724 chore: Companion - add support for GHOST 12bit opt (#1689)
* chore: Companion - add support for 12bit GHOST opt
Resolves #1510

* Ghost protocol reading and writing non-yaml formats

Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-03-14 11:10:12 +10:00
Peter FeerickandGitHub 9b830ac12e feat: colorlcd - Add channel bar to Output Edit Screen and us values to outputs table on wide displays (#1664)
* feat: Add channel bar to Output Edit Screen
Resolves #1385

* Wide colorlcd, show channel val on outputs table
I've also add commented code for those who want percentage instead of us
2022-03-11 20:05:08 +10:00
Peter FeerickandGitHub 44a1733f0b chore: Touch and Narrow LCD template tweaks (#1675)
* Make the buttons double height so easier to touch

* Add translation strings, add info for blank model

* Wrap STR_NO_TEMPLATES text on narrow screen
2022-03-11 19:31:35 +10:00
Peter FeerickandGitHub c73057ad54 fix: Make showing int MPM spectrum analyser entry runtime determined (#1648)
Showing of the "(int) Spectrum Analyser" determined at build time,
dependent on the default internal module, which is wrong post #1117
Fixes #1647
2022-03-06 11:40:12 +10:00
Peter FeerickandGitHub 2929f1aca9 fix: Disable LUA GV funcs if GVARS=NO build (#1645)
Compile option breakage from #1602
2022-03-01 08:38:20 +10:00
Peter FeerickandGitHub 2792ad2fa4 fix: TX12 bootloader contrast too dark, and SE/SF could not be set 3POS (#1548)
* fix: SE and SF could not be set 3POS
*Somebody* (me) forgot ternary operator only compares two value in #1303

* fix: TX12 default contrast is too high
There is no 'perfect' value due to manufacturing variance, but 25 is simply too high,
and 15 a bit too low.
2022-02-12 20:38:55 +10:00
Peter FeerickandGitHub 12c6f22145 Cleanup PR template text 2022-02-06 12:43:47 +10:00
Peter FeerickandGitHub 65ed80aa92 fix: NV14 bootloader navigation not working (#1534) 2022-02-04 10:50:54 +10:00
Peter FeerickandGitHub 5601bd53b2 Allow manual trigger of fw build/check action 2022-01-29 12:49:14 +10:00
Peter FeerickandGitHub 4b93686a40 feat: ImmersionRC Ghost 12 bit support
IRC Ghost 12 bit support
2022-01-27 09:58:09 +10:00
Peter FeerickandGitHub 09980bf640 Typos 2022-01-26 11:32:59 +10:00
Peter FeerickandGitHub bbb834b104 Ignore config files for external services 2022-01-26 11:32:34 +10:00
Peter FeerickandGitHub 3cb9ca00ac Bump gitpod docker container version 2022-01-26 11:29:54 +10:00
Peter FeerickandGitHub ee21651dda T8 mislabeled
Thanks to BrdsRTRL on Discord for spotting it
2022-01-25 08:47:09 +10:00
d1ef6f866c [tpro] fix function switch behaviours and add always on capability (#1479)
* fix: tpro function switch toggle mode

* feat: Function switches now have alway on option

* Companion support for function switch always on

* Fix nasty eeprom error

* Update fs startup item model

* Fix Tpro SWITCH_EXISTS

Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
2022-01-23 18:42:31 +10:00
121a1ffee5 fix: Potential out of bounds access of flightmode name on main screen (#1337)
Take 2, without the Mac Companion breakage...

* fixed incorrect use of non-terminated-fixed-string for ctor of std::string

* introduced helper

* removed commented lines

* removed constexpr since in C++11 std::string ctro isn't still constexpr

Co-authored-by: wimalopaan <wilhelm.wm.meier@googlemail.com>
2022-01-21 19:53:45 +10:00
Peter FeerickandGitHub 294e250f08 [ghactions] Cache Qt dependencies for building Windows Companion (#1431)
* [action] Cache QT install files
* Take into account two windows builds

Note: If for any reason the cache is corrupted, the cache key will need to be updated to make it re-build.
2022-01-21 13:10:12 +10:00
Peter FeerickandGitHub 7da7261e7b Various Companion fixes (#1449)
- Fix (de-)serializing enable param for backlight custom function
- Fix OFF backlight
- Fix power ON/OFF delay
- Fix flight mode trim disabled
- Fix trim switch index
- Fix deserializing SLIDER[1,2]
- Fix shift for logical switches in raw sources
2022-01-18 11:13:11 +10:00
Peter FeerickandGitHub dcbdde2b74 Fix warning: "EVENT_BUFFER_SIZE" redefined 2022-01-17 11:34:09 +10:00
Peter FeerickandGitHub 1fe4936e7e Move discord, facebook, discussions links up 2022-01-17 09:11:50 +10:00
Peter Feerick 733e272601 Revert "fix: Potential out of bounds access of flightmode name on main screen (#1337)"
This reverts commit 1b6f827b2c.
2022-01-10 11:10:04 +10:00
Peter FeerickandGitHub 925043f4b3 fix: [companion] Show cause of error if unable to read from radio, scan MODELS dir if models.yml missing
Fallback to model file scanning if models.yml cannot be read
2022-01-10 10:13:40 +10:00
Peter FeerickandGitHub 351643b652 Clear active model internal module settings if radio level setting changed (#1316)
* [colorlcd] Ensure active internalModule is reset if different to radio level setting

* [B&W] Ensure active internalModule is reset if different to radio level setting

* storageDirty only when model setting cleared

* [b&w] Remove reusablebuffer, code re-order

* [colorlcd] More direct moduleType comparision
Consistent with B&W test
2022-01-03 20:55:49 +10:00
Peter FeerickandGitHub b0c328dd19 Make SYS Tools Lua entries larger for easier touch (#1265)
fixed 376 by making each line 10 pixels higher.
2021-12-18 12:20:24 +10:00
Peter FeerickandGitHub 8afcf1f1ce Merge pull request #1230 from EdgeTX/tpro-support
Jumper T-pro support
2021-12-18 11:35:11 +10:00
Peter FeerickandGitHub 8fa1d91e65 SD Card version cleanup + update more OTX references (#1194)
* Remove references to `REQUIRED_SDCARD_VERSION`

* EdgeTX, not OpenTX

* Alignment
2021-12-07 20:48:36 +11:00
Peter FeerickandGitHub 8a47acd809 Fix model## format model notes not working (#1202)
use yml instead of bin to construct notes file name from model file n…
2021-12-02 11:52:23 +10:00
Peter FeerickandGitHub a05cc887b9 Add touch to Standalone Lua scripts (#1082)
Touch events to Standalone Lua scripts
2021-11-25 10:49:44 +10:00
Peter FeerickandGitHub 362a8e435f Add filename to lua model.getInfo() (#1132)
* Add filename to lua `model.getInfo()`

* Make `getModelNumberStr()` globally available

* Move variable extern

* Move constexpr to header, remove externs

* Perhaps .cpp should include its OWN header
2021-11-25 10:38:51 +11:00
Peter FeerickandGitHub 6e51c70aa7 Reduce code repetition for sd browser firmware update handling, add some .frsk entries (#543)
* Hacky port of FRSKY_FIRMWARE_EXT update menu
More work is needed to integrate/test the remaining menu items
May just ba a matter of correct parameters for deviceFirmwareUpdate

* Functionalise, of sorts

* Formatting

* Functionalise more repeated update code
2021-11-22 17:01:22 +11:00
Peter FeerickandGitHub 3e170e3cf8 [github] Reword PR template text 2021-11-19 11:49:37 +11:00
Peter FeerickandGitHub 3ad98bacf4 [NV14] Use trim hats to emulate key events when standalone lua script running (#985)
* Preliminary trims as keys for lua
Largely based on open-flysky implementation

* Add `isLuaStandaloneRunning()`

* Add more virtual events

* Tweak virtual events further

* Finish remapping keys to virtual events

* Move some virtuals to right trim hat

* Add missing "defined"

* Revert to common EVT_VIRTUAL_MENU mapping

* Make keys/trims reset backlight like other radios
2021-11-09 12:50:20 +11:00