Commit Graph
71 Commits
Author SHA1 Message Date
philmozandGitHub 9a44335601 chore(color): implement publish/subscribe messaging to simplify code and further code consolidation (#7032) 2026-01-29 15:45:10 +10:00
philmozandGitHub 6a37b3d4bc chore: improve translation string management (#6502) 2025-10-05 13:04:17 +10:00
philmozandGitHub fa54a44f3d refactor(color): UI layout logic to better handle different screen sizes and orientations (#6134) 2025-05-06 13:49:58 +10:00
Raphael CoefficandGitHub ab2a19e153 feat(radio): OS compatibility layer (#5840) 2025-05-03 19:07:49 +10:00
philmozandGitHub e0ec49d84e chore(radio): remove EEPROM macros and related code (#5461) 2024-08-22 10:32:16 +10:00
philmozandGitHub 5ca2419e0d chore: replace f_puts and f_printf functions to save FLASH space (#5459) 2024-08-20 09:51:06 +10:00
Peter FeerickandGitHub 839cfbd53c chore: more OTX to ETX housekeeping (#5396) 2024-08-14 21:02:29 +10:00
ThomasKuehneandGitHub 49331bba4d fix(radio): memory leak in ModelMap::renameLabel (#4675) 2024-02-25 11:42:03 +10:00
philmozandGitHub 2c01bee40d feat(color): Single select option for model labels. label AND/OR filtering logic (#4532) 2024-01-26 21:15:32 +10:00
philmozandGitHub 63bb205e6b feat(color): Add alternate layouts for model list in Manage Models page (#4524) 2024-01-26 20:48:09 +10:00
philmozandGitHub b9e3ee1408 fix(color): 'Unlabeled' option does not appear in labels list (#4531) 2024-01-12 10:51:50 +10:00
philmozandGitHub 68f0f3d864 feat(color): Make model sorting case insensitive (#4482) 2024-01-01 07:36:31 +10:00
Raphael CoefficandGitHub 373bb33f4b chore: Remove some bloat, reduce firmware size (#4288) 2023-11-08 22:05:54 +10:00
f5593c44e8 fix(color): Bitmap name truncation if exactly 14 characters long (#4232)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2023-10-31 11:40:49 +10:00
661657feca feat: New advanced joystick mode on radio, improvements to Companion and Simulator joystick support (#3111)
* Allow switches on the connected radio to control switches in the simulator via the joystick interface.

* Merge configurable radio joystick interface from banyaszg.

* Add two more 'axis' channels to companion.

* Fix 6POS from USB joystick to simulator.

* Reduce data size.

* Fix build error on B&W radios.

* Add 'Companion' button mode to work with the button logic in the Companion app.

* Build Companion joystick setup layout at runtime.
Change #define names for simulator joystick.
Allow 15 axes and 32 buttons.
Initial support for trim sliders.

* Remove custom joystick button type for companion - use 3 buttons per switch in companion to control simulator switch state.

* Fix joystick constructor calls parameters. Connect some radio joystick trims to simulator widgets.

* Restore 'companion' button type to reduce number of buttons needed. Make trims work via buttons in USB joystick.

* Connect joystick trim buttons to simulator widgets.

* Use companion source names for trims.

* Add encode / decode of usb joystick custom settings to Companion.

* Convert to lvgl layouts.
Update language files.

* Fix generated YAML storage files.

* Fix initialisation error when editing button channel. Cleanup code.

* Fix rebase.

* Fix refresh of joystick channel list view after editing an entry.
Companion joystick config window uses two columns.

* Fix vertical joystick inversion bug.
Change stick axis labels.

---------

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-03-22 10:31:29 +10:00
philmozandGitHub 650406db52 fix(color): EM triggered when checking if modelID unique in certain instances (#2845)
Cast comparison value to int to avoid signed / unsigned comparison error if (curr - warn_buf) > 48.
2022-12-14 19:18:34 +10:00
CliffandGitHub 44add84b17 fix(color): only open model###.yml files (#2514)
* Only open model#x.yml files

* Remove Trace
2022-10-12 12:59:10 +10:00
Raphael CoefficandGitHub d6741450f3 fix(color): set current model after label update (#2476)
* fix(color): set current model after label update

Fixes #2460

Here Companion only outputs a more or less empty labels file, so that models are scanned on startup, however not setting the current model properly in this particular case.

* fix(color): bitmap name in modelslist should be zero terminated
2022-10-06 16:10:48 +10:00
CliffandGitHub 8c2b3c0bff fix: Correct errors in labels.yml if modelname is full length (#2448) 2022-10-03 13:04:47 +10:00
CliffandGitHub 9f7df8402a feat: Change extension on models.yml to prevent second parsing (#2430) 2022-10-01 14:43:19 +10:00
CliffandGitHub 5b6fac36c6 fix(color): Move mdls not in models.yml to /Models/Unused (#2397)
* Move models.yml that don't exist into /Models/Unused

* Add sdMove, Translations, move both models.yml

* Comments, break loop, rmv extra bool.

* Show Press_Any_Key on dialog

* Translations

* Always create /Models/UNUSED if models.yml exists.

* Close directories
2022-10-01 11:29:16 +10:00
CliffandGitHub ac091b779d fix(color): Deleting empty label caused EM/Hang (#2392)
* If deleting a label, don't check size

* If rename to blank, do nothing
2022-09-28 18:19:59 +10:00
CliffandGitHub 333c2828ea fix(color): Limit label lengths, improve lbl display, prevent inv. char (#2287)
* (cpn) Add bullets & length warning

* (fw) Show labels with bullet separators

* (fw) Check all running twice. Remove from here

* (fw) Correct buffer overflow when labels too long

* (fw) Rem bullets in model label string

* (fw, cpn) Labels length

cpn,fw Limit label length
cpn Check correct model on rename length
cpn Focus issues
cpn Add rename,  move up/down.. still has an issue with selection. TODO...
cpn Switch to utf8 encoding
cpn Rename button ;)

* (cpn) Move up down working

re-Fix Checkbox, partially isn't what I thought (not greyed)

* (fw) Add CSV string funcs

Limit length of model edit shorter in portrait mode

* (cpn) Correct Label option showing on B&W

* (fw) Radio filename set but no file exists don't create

* (cpn) Simplify wording

* (fw) Correct debug values

* (fw) Reduce truncation length

* (both) Don't allow special chars in label name

(cpn) Prevent move when at top and bottom
(fw) Remove multiple label length defines
(fw) Shorten truncate length even more

* (fw) Close model_select on new model
2022-09-18 10:47:21 +10:00
eshifriandGitHub 5f4def2f91 fix: Changing label order for only two labels could trigger EM (#2273)
* Fix definition for signed value

* Support changing order of the labels for two labels

* Swap labels when there is only two due to std::rotate limitation

* Change the order with swap.

* Map rebuid added
2022-09-07 18:29:59 +10:00
dlktdrandPeter Feerick aec0639e66 (fw+cpn) libsim not loading models, set mod on new lbl 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 4067c6df07 (fw,cpn) Support commas in labels
Remove more cpn unused code
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 9a481d6837 (fw) Better handling for blank Labels in labels.yml 2022-09-06 21:04:10 +10:00
c8693569b0 feat(color): New label based Model Selector (#1374)
* Model Labels Selector

* Portrait Layout

* Receiver ID Check

* Fix Labels .yml format

* Companion Initial Commit

commit 967ddf3979b4954402fe62c858faba4b7a416bba
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:49:15 2022 -0700

    Fix Labels .yml format

commit 534221cad9e01146c47a9ac1080a655e04f1f6c8
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:20:57 2022 -0700

    Receiver ID Check

commit f32c0939d44e9ae60bc0705a9176354c23fec198
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sun Aug 28 23:13:25 2022 -0700

    Portrait Layout

commit 961181217c7841ff3f21299ac6aa419b810f80e9
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sat Dec 11 16:56:13 2021 -0800

    Model Labels Selector

commit dc99dd40d2
Author: David PHAM-VAN <1387855+DavBfr@users.noreply.github.com>
Date:   Fri Aug 26 03:04:34 2022 -0300

    feat: Allow Lua widget to override built-in widget with same name (#2208)

    * Allow CPP Widgets Override with LUA

    * Reset a widget option it the type differs

commit 4b747caff9
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Thu Aug 25 19:47:53 2022 -0700

    fix: Write model name into models.yml when duplicating model (#2224)

    * Update model name in the models.yml file (#2214)

    * Fix the length of the name.

commit e97f23a305
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Wed Aug 24 21:19:52 2022 -0700

    fix(cpn): Fix full path to model notes for Simulator (#2223)

* Correct Highlighted Column

* labels .yml indentation

* Update da.h

New defines translated to Danish

* Update dataconstants.h

Omit warnings due to difference of LEN_MODEL_FILENAME and LEN_MODEL_NAME in modellist.cpp

* Update modelslist.cpp

Wonder if this are the right file in PR #1374 (?), seems a lot are changed to the better in #1374

* Update dataconstants.h

Restore #define for LEN_MODEL_FILENAME to 16

* Rebase, Correct Issues

Delete now deletes instead of select
New model stores correct information
Duplicate save all information in cell
Rework items to use cell over button
Reword function variables

* CMPN: Add context menu

Fix output not functional. Removed Yaml::null at some point :)
Fix some compiler warnings

* CMPN: Compiler warning, replace ,->_ in list

* FW: Various Changes

Change view to a grid
Don't allow comma in label name
Add scroll indicators
Save sort order

Co-authored-by: HThuren <99370924+HThuren@users.noreply.github.com>
2022-09-03 09:01:19 +10:00
eshifriandGitHub 4b747caff9 fix: Write model name into models.yml when duplicating model (#2224)
* Update model name in the models.yml file (#2214)

* Fix the length of the name.
2022-08-26 12:47:53 +10:00
eshifriandGitHub 87021209b3 fix(colorlcd): EM crash when clearing Model Category name (#1897) (#1925)
* Merge branch 'main' into eshifri/preserve_current_rebase

* Initialize category name to zero. Without it KEY_ENTER adds garbage.
2022-05-04 18:15:24 +10:00
Raphael CoefficandRaphael Coeffic 86d1ca4364 Reorganize module type/subType/rfProtocol 2022-03-24 10:40:17 +01:00
Raphael Coeffic c2c23c43d9 Fix parsing last line without CRLF/LF.
Check EOF at the end of the buffer.
2021-12-31 10:53:11 +01:00
Raphael CoefficandRaphael Coeffic 5b1a1c27a9 Make the models list pass YaML linter 2021-11-22 13:23:28 +01:00
Raphael CoefficandRaphael Coeffic 934f4dadb9 Use double quotes for filename and model names in models list YaML 2021-11-22 13:23:28 +01:00
Raphael CoefficandRaphael Coeffic 8c688bb6a4 Save models list after changing a model name
Resolves #1079
2021-11-22 13:23:28 +01:00
Raphael CoefficandRaphael Coeffic e18e862a88 Move models.yml to its rightful place in case we find it at the old one 2021-11-22 12:52:53 +01:00
Raphael CoefficandRaphael Coeffic 959f6c18e7 Fall back to /RADIO/models.yml in case /MODELS/models.yml is not present
and do not load models.txt unless we are explicitly converting.
2021-11-22 12:52:53 +01:00
Raphael CoefficandRaphael Coeffic 5290820ada Move YaML models list to /MODELS
Resolves #1073
2021-11-22 12:52:53 +01:00
Raphael Coeffic bcdb9bd311 Fix model names and indexes on storage creation 2021-11-10 11:07:03 +01:00
Raphael Coeffic 3717e37e3f Set current model in ModelsList while loading 2021-11-10 11:07:03 +01:00
Raphael Coeffic f932e9e12c Further confined v220 data structures 2021-11-10 11:07:01 +01:00
Raphael Coeffic 4c8db58166 Fixes compilation for color lcd 2021-11-10 11:07:01 +01:00
Raphael Coeffic 5e0d0131b4 Added EEPROM conversions to YAML 2021-11-10 11:07:00 +01:00
Raphael Coeffic 5a367a5221 Bin to Yaml conversions 2021-11-10 11:06:59 +01:00
Raphael Coeffic e1736294c8 Use a list attribute name as model category 2021-11-10 11:06:59 +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
Raphael CoefficandRaphael Coeffic 79eee634fd [color] set focus on current model or close to the current operation
Resolves #345
2021-06-28 09:00:12 +02:00
Raphael Coeffic 82f60cdc81 Fix model names on model select page with not yet converted models
Resolves #248
2021-06-19 14:49:05 +02:00
Raphael Coeffic 0d344bedd8 [color] Batch conversions 2021-06-10 13:17:49 +02:00
Raphael Coeffic aa39255f64 do not create an empty model cell with no model inside the category (displays garbage) 2021-04-09 13:12:44 +02:00