Commit Graph
74 Commits
Author SHA1 Message Date
4b917b762c feat: use any source for expo/weight/offset (#5220)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
2024-07-26 20:51:21 +10:00
80659c3e3f feat: add inverted sources (#4722)
Co-authored-by: elecpower <neilh713@tpg.com.au>
2024-05-25 09:25:15 +10:00
Neil HorneandGitHub 57c7aca2f6 fix(cpn): radio specific name and label validators (#4670)
Only allows valid characters in names, drops invalid characters if present
2024-02-28 11:35:57 +10:00
Neil HorneandGitHub ddf5fdd906 fix(cpn): Add GVARs to input sources (#3097)
* fix(cpn): Add gvars to input sources for colorlcd ONLY

* Fix GVs available on all radios

* Move GVs in source list from after telemetry to before
2023-03-16 17:57:34 +10:00
Neil HorneandGitHub e0e196a6e6 feat: Companion - New model curve tab layout, curve edit dialog and mix edit curve view (#1484)
Add curve image and double click to edit to input edit, mix edit and outputs
2022-03-08 13:10:13 +10:00
elecpowerandPeter Feerick 2b3835f567 Remove scale fields artifacts 2021-09-23 09:04:43 +10:00
elecpowerandPeter Feerick 9266ad1f34 Fix model input trims and cosmetic for scale fields 2021-09-22 18:57:27 +10:00
elecpowerandPeter Feerick 5596211be8 Fix input scale decimals, add sensor unit, add scale to inputs list and model print 2021-09-19 22:29:40 +10:00
elecpower ad0134d3ce Add gvref data model to value/gv fields in inputs, outputs and mixes 2021-02-27 08:08:35 +11:00
elecpower 963d7455b7 Fix source filters for inputs and mixes 2021-02-05 16:50:02 +11:00
elecpower 905886774f Major refactoring continued 2021-01-08 20:24:46 +11:00
elecpower 0d281cf5dd Major refactoring 2020-12-31 17:15:35 +11:00
elecpower 613ed78527 Curve reference add ui data models and fix invalid memory crashes 2020-12-21 23:33:18 +11:00
elecpower 91a5c438dd Add shared curves ui model to curve ref 2020-12-12 22:10:54 +11:00
elecpower 83561fe6fe Refactor curve reference 2020-12-05 06:50:43 +11:00
elecpower 1b40c69593 Input and mix source list use filter to remove none entry 2020-09-20 07:43:54 +10:00
elecpower 4feee9c665 Inputs create filtered list once 2020-09-20 05:48:49 +10:00
elecpower 1e0e22955d Refactor to Model level ui datamodels for sources, switches and curves 2020-09-17 14:30:20 +10:00
DanielGeAandGitHub 5d4f6679e5 Remove Avr boards (#7713)
Remove AVR
2020-06-22 16:52:52 +02:00
Neil HorneandBertrand Songis 1ec55792f7 Add mouseover tool tips to label fields with context menus (#6448) 2019-05-25 10:16:57 +02:00
Max Paperno ca63b92e5b [Companion] Refactor RawSource & RawSwitch data models to abstract the base classes and reduce redundancy; Move data models to own folder. 2018-07-12 13:20:07 -04:00
Max Paperno 81c33b6432 [Companion] Refactor RawSwitchItemModel and RawSwitchFilterItemModel for better efficiency, does not invalidate whole model on updates (structure is almost identical to the RawSource variants). 2018-07-12 13:20:07 -04:00
Max Paperno ed255ce1c3 [Companion] Updates to use new RawSource data models in UI. 2018-07-12 13:20:06 -04:00
Arne SchwabeandBertrand Songis 87295776ff Fix issue #4961 (#5009)
* Fix issue #4961

Fix yet another reference to HORUS_OR_TARANIS that should be IS_ARM
Also rename C9X function to export/import to be inline with the rest

* Another two IS_ARM/HORUS_TARANIS mixups

* Fix condition

* Simplify/fix two if statements

* Really fix if statement
2017-08-12 00:26:28 +02:00
Bertrand Songis b55070f939 [Companion] Sensor switches support added
+ some refactoring to hide irrelevant switches in the combobox

More refactoring to come:
 - have only one SwitchModel per model instead of one per tab
 - only do the update work if something has changed
2017-07-30 12:12:27 +02:00
Max PapernoandBertrand Songis f7b6d95910 [Companion] Input names formatting (#4888)
* [Companion] Re-format Inputs list to format input name consistently with rest of UI; Add leading zeros to RawSource numbers in names; Show custom channel name in MixerDialog.

* [Companion] Remove colon separator between input number and custom name.

* Fix segfault when no model pointer is passed to RawSource::toString() (problem was only on this branch).
2017-05-11 07:37:13 +02:00
Max PapernoandBertrand Songis f5ab145d2f [Companion] Show custom control names throughout the UI (& internal refactoring) (#4693)
* [Companion] Introduce new Boards class to further consolidate hardware metadata and remove some globals.

* [Companion] * RawSource::toString() and RawSwitch::toString() can now return custom hardware names (if given a GeneralSettings object) for the following types (respectively):
    SOURCE_TYPE_STICK, SOURCE_TYPE_SWITCH, SWITCH_TYPE_SWITCH, & SWITCH_TYPE_MULTIPOS_POT;
* RawSource::isPot() and isSlider() can now return their own index position in potConfig[]/sliderConfig[];
* Switch indicator strings can be localized if necessary.

* [Companion] Refactor model printers to use new RawSource/RawSwitch capabilities; Simplify model-to-printer mapping scheme in multimodelprinter; Use const ModelData pointer.

* [Companion] Refactor how RawSource and RawSwitch selection combo boxes are populated, using cache-able data models instead of direct manipulation; Refactor some other Helpers function into their own namespace.

* Cosmetics & forgotten qualifier.
2017-03-27 19:02:19 +02:00
Max PapernoandBertrand Songis 2540e166b0 [Companion][Horus] Add joystick axes (JSx & JSy) and trims T5 & T6 as usable sources. (#4550)
* [Companion][Horus] Add joystick axes (JSx & JSy) to sources list (fixes #4336).

* [Companion][Horus] Add aux trims T5 & T6 and associated switches to respective selector lists. Rename "Joysticks" enum to "MouseAnalogs".
2017-03-05 08:46:27 +01:00
Jim TaylorandMax Paperno b75fa3b06f Change text "not" to ! to fix VS15 Build Issue_4522 (#4523)
* Change text "not" to ! to fix VS15 Build (closes #4522)
* Change !cb_fp[i]->checkState() to !cb_fp[i]->isChecked() per comments in PR
2017-02-27 18:14:32 -05:00
Neil HorneandBertrand Songis 3b149a22d1 Inputs and Mixes dialogs - add flight modes context menu to set, clear and invert all modes (#4494) 2017-02-26 12:51:06 +01:00
Damjan AdamicandBertrand Songis 8b1078d081 Fixes #4290: Input Offset fix [Horus] (#4293) 2017-01-26 18:26:40 +01:00
Bertrand Songis 7140eec2df [Companion] 9XR-PRO EEPROM import fix
+ cosmetics
+ compilation error fixed on Manjaro
2017-01-22 09:09:15 +01:00
Bertrand Songis 1924d28be3 [Companion] Fixes 2017-01-18 15:25:43 +01:00
Bertrand Songis 440ca771df [Companion] Horus analog input names fixed 2016-12-02 20:27:28 +01:00
Bertrand Songis b0f5b646af [Companion] Copyright added to all files 2016-11-23 16:40:47 +01:00
Bertrand Songis 5f9737fc70 [Companion] Old EEPROM support removed 2016-11-23 16:40:47 +01:00
Bertrand Songis c5a44250fc Fixes #3353 2016-04-09 11:12:50 +02:00
Bertrand Songis aec2170e7e Move to Qt5 and Qt5Multimedia 2016-03-10 07:12:44 +01:00
Damjan Adamic 65bdd25173 Various fixes: modelPrinter free, mixer crash, trims display, channel names, monospace font 2015-08-23 16:00:37 +02:00
Damjan Adamic 0c7e545b42 Cosmetics 2015-08-23 15:33:09 +02:00
Bertrand Songis ed05174fc8 PrintDialog / CompareDialog refactoring 2015-08-23 09:54:15 +02:00
Damjan Adamic 4e4d0fe883 Re #1063: Deduplication of code for Inputs, Mixers, Logical Switches and Special Functions 2015-07-28 20:57:06 +02:00
Damjan Adamic c09d4278c3 Fixes #2420: input name buffer overflow in Companion (ported from master) 2015-07-05 18:26:19 +02:00
bsongis 0c01f66272 Fixes #2299 2015-05-26 07:14:25 +02:00
Andre Bernet 930fd7443e Companion UI support 2015-03-28 11:42:45 +04:00
bsongis 38a639cef6 Refactoring 2014-12-16 21:17:39 +01:00
Damjan Adamicandbsongis 8a80463476 Re #1783: NOT curves removed from inputs (for non ARM platforms) 2014-11-08 11:24:51 +01:00
Damjan Adamicandbsongis 1c053a7d0b Re #1783: Companion shows too many curve types in input/mixer for 9x 2014-11-08 11:24:51 +01:00
bsongis ef7bbea285 Global Functions now integrated inside Companion - Fixes #502 2014-09-18 15:32:55 +02:00
bsongis 36481471a3 Fixes #1595 2014-08-13 11:37:03 +02:00