Commit Graph
100 Commits
Author SHA1 Message Date
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
Peter FeerickandGitHub 63bfc1cf5a Fix CurveEdit crash on NV14 and enable horizontal scolling (#965)
* [nv14] Add crash causing missing curveDataEdit

* Allow horizontal touch sliding
Thanks for catching this @kevinkoenig

* Prevent hori scroll where it shouldn't scroll
Why `model_inputs` scrolls is still a mystery, but it behaves now

* DRY is in effect
2021-11-08 22:07:16 +11:00
Peter FeerickandGitHub e6697639c7 Rename modelBmp using new 'displayName', add more options (#544)
* Make img buf only size of img not whole widget

* Don't draw buffer if there's no image

* If there's no image, draw model name

* Add some options, draw model name if img not set
Add options for text colour, size, fill enable and colour

* Use valid values for defaults

* Get right colours

* Add concept of a 'friendly name to widgets'
Allows for separation of internal and user visible names

* Use new theme constants

* Use right version of libopenui

* `displayName` instead of `friendlyName`

* Allow using theme colour or custom for name
2021-11-08 21:27:38 +11:00
Peter FeerickandGitHub 27f0d043d0 [Companion] More direct donation link 2021-11-05 20:23:19 +11:00
Peter FeerickandGitHub d5913e48b0 Add OpenCollective funding config 2021-11-05 13:49:44 +11:00
Peter FeerickandGitHub 1e952b8d59 Add Open Collective badge 2021-11-04 16:57:49 +11:00
Peter FeerickandGitHub a36aac0c90 [devcontainer] bump to 2.5 image 2021-10-20 17:27:06 +11:00
Peter FeerickandPeter Feerick 7d215dd809 Disable MixerScriptsPage if both required flags are not set (#879)
* Disable MixerScriptsPage for 2.5 release builds
Since it doesn't work anyway without LUA=Y

* Only enable tab when both flags set
2021-10-07 19:35:54 +10:00
Peter FeerickandGitHub 088051f3bb Use B&W for poweroff animation (#862)
* Use theme color for poweroff

* Also set animation color

* Changed to black bg, white animation
Per @JimB40 direction 😁
2021-10-06 22:45:33 +11:00
Peter FeerickandGitHub 247d2b0fd8 Statistics page theming + ENTER fix (#872)
* Statistics screen theming
Basically none of the text was using theme colours.

* Formatting

* Use COLOR_THEME_PRIMARY2 for prefixes

* Remove NO_FOCUS stopping reset button from working
Fixes #841
2021-10-06 22:14:49 +11:00
Peter FeerickandGitHub e1898475fd Automatically add enhancement label on FRs 2021-10-01 09:59:21 +10:00
Peter FeerickandGitHub 580b9b12bc Add missing audio/haptic when set custom failsafe
Fixes #799
2021-09-23 21:11:34 +10:00
Peter FeerickandGitHub 47dac14b2f Add codename define, update radio version screens and tweak companion (#747)
* Add codename deffine and update all radio version screens

* Move string, make const and formatting

* Missed parentheses around version number

* Add codename to Companion

* Replace edge-tx.org with edgetx.org

* Change EdgeTX website http links to https
Also consistent URL

* Update copyright string
Leave second version for future years
2021-09-18 20:35:31 +10:00
Peter FeerickandGitHub f5b5da86ce Disable unavailable Companion Preferences and tweak more legacy wording (#737)
* Fix references to opentx
* Disable update related options in preferences
2021-09-16 19:36:04 +10:00
Peter FeerickandGitHub 70ccca3dfa Merge pull request #726 from EdgeTX/fix-722
Call GV_IS_GV_VALUE() without offset applied
2021-09-15 11:36:09 +10:00
Peter FeerickandGitHub bba8f0f274 Merge pull request #727 from EdgeTX/simu_tap_count
Add tap count support to `simu` and fix simulator compilation on non-touch targets
2021-09-15 10:02:51 +10:00
Peter FeerickandGitHub cc0c530f3f Prevent USB activation while flashing firmware (#672)
* Prevent USB activation while flashing firmware
* Also prevent USB if at FLASH_DONE screen
2021-09-14 16:03:11 +10:00
Peter FeerickandGitHub 5dd4a89eb4 Merge pull request #704 from EdgeTX/nv14-doubletap
Implement tap count for NV14 TP also
2021-09-12 10:57:39 +10:00
Peter FeerickandGitHub e5b5c41253 Merge pull request #707 from jfrickmann/LuaWidgets
Add lcd.exitFullScreen(), removed full screen message
2021-09-12 10:57:26 +10:00
Peter FeerickandGitHub 3778ed26dd Merge pull request #703 from jfrickmann/DoubleTap
Double tap
2021-09-11 11:28:07 +10:00
Peter FeerickandGitHub 61d12f955d Merge pull request #696 from jfrickmann/LuaRGB
Modify Lua function lcd.RGB(...)
2021-09-10 07:10:42 +10:00
Peter FeerickandGitHub 30d9107d65 Merge pull request #693 from elecpower/cpn-fix-timer-edit
Timer edit enable switch except when mode is off
2021-09-09 18:35:02 +10:00
Peter FeerickandGitHub 1f87101e1d Merge pull request #664 from EdgeTX/pfeerick/issue663
Set more sensible default colors for output widget
2021-09-09 10:09:44 +10:00
Peter FeerickandGitHub b0fc204092 Merge pull request #690 from EdgeTX/sw_keyboard
Only enable HARDWARE_TOUCH for TX16 & T18 (Horus targets) by default
2021-09-08 16:24:29 +10:00
Peter FeerickandGitHub 24f88092b3 Merge pull request #688 from elecpower/elecpower/sim-fix-toggle-lock
Fix toggle lock release on simulator
2021-09-08 11:45:19 +10:00
Peter FeerickandGitHub 3ab85d1fef Merge pull request #689 from kevinkoenig/lng-press
Implement long touch to launch curves in mixes and inputs
2021-09-08 11:36:05 +10:00
Peter FeerickandGitHub 8823a1b0af Ignore changes to companion src
This is firmware test and builds only
2021-09-08 11:08:50 +10:00
Peter FeerickandGitHub 5ce08bb396 Merge pull request #679 from eshifri/eshifri/NV14_backlight
Allow backlight change with special function on NV14
2021-09-06 11:54:12 +10:00
Peter FeerickandGitHub c71f06d625 Merge pull request #678 from kevinkoenig/jump-curve
Implement Jump to Curve Edit from input and mixer screens
2021-09-06 11:53:24 +10:00
Peter FeerickandGitHub 973e2fe300 Merge pull request #677 from jfrickmann/LuaDrawTextLines
Improved Lua draw text lines
2021-09-06 11:53:09 +10:00
Peter FeerickandGitHub 68bea5212a Merge pull request #681 from kevinkoenig:sft-kbd-caps
Reverse keyboard icons so no caps is silhouette, caps is filled
2021-09-06 11:26:18 +10:00
Peter FeerickandGitHub 69efe13a57 Merge pull request #676 from eshifri/eshifri/nv14_model_setup_screen 2021-09-04 10:55:27 +10:00
Peter FeerickandGitHub 694c2dcf2d Merge pull request #671 from jfrickmann/LuaDrawTextLines
Add Lua function lcd.drawTextLines(...)
2021-09-03 19:26:01 +10:00
Peter FeerickandGitHub 71764fec1d Merge pull request #660 from avsaase/crsf-50-mw
Add 50 mW TX power level to CRSF protocol
2021-08-31 19:10:40 +10:00
Peter FeerickandGitHub 4a75467891 Merge pull request #659 from eshifri/NV14-model-setup-extra-line
Nv14 model setup extra line
2021-08-31 16:11:31 +10:00
Peter FeerickandGitHub e533fd1af7 Merge pull request #643 from EdgeTX/pfeerick/issue178
Don't remove 2POS from avail switches for invert
2021-08-30 23:37:37 +10:00
Peter FeerickandGitHub cb26ed3d87 Merge pull request #644 from kevinkoenig/software-keyboard
Software keyboard support
2021-08-30 23:06:55 +10:00
Peter FeerickandGitHub 4ad5cc0ab5 Merge pull request #651 from jfrickmann/FixMissingColors
Fix missing colors
2021-08-30 20:46:40 +10:00
Peter FeerickandGitHub a8f0b1e590 Add manufacturer names and alphabetical sort
Should update flasher dropdown
2021-08-30 10:21:28 +10:00
Peter FeerickandGitHub 606da0dc75 Merge pull request #653 from jfrickmann/LuaWidgetErrorMsg
Show error message in Lua widgets instead of "disabled"
2021-08-30 09:44:11 +10:00
Peter FeerickandGitHub 1debcd2651 Merge pull request #649 from jfrickmann/LuaWidgetColorOption 2021-08-29 10:16:35 +10:00
Peter FeerickandGitHub e216921556 Merge pull request #639 from EdgeTX/nv14-bootloader-files
Show more files on the NV14
2021-08-28 20:42:02 +10:00
Peter FeerickandGitHub deb9a6d213 Merge pull request #646 from jfrickmann/LuaWidgetColorOption
Color options for Lua widget get translated to Lua color flags
2021-08-28 20:40:31 +10:00
Peter FeerickandGitHub 8becbfcb49 Merge pull request #594 from eshifri/eshifri/invert_switch2 2021-08-25 11:31:08 +10:00
Peter FeerickandGitHub 7b5ac35bf5 Merge pull request #634 from zyren/main
Optimize the date format of CN/TW
2021-08-25 11:09:53 +10:00
Peter FeerickandGitHub 6d7a9293a7 Merge pull request #624 from EdgeTX/pfeerick/issue372
More layouts
2021-08-25 08:04:49 +10:00