Commit Graph
110 Commits
Author SHA1 Message Date
elecpower 5ac380360d Sensor ui refactoring 2021-02-01 06:39:51 +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 7c974286cc Fix telem refresh 2020-10-25 08:12:52 +11:00
elecpower c15dd90986 Improve memory management 2020-10-22 09:27:34 +11:00
elecpower af4c5524b1 Refactor to directly call updates to data models 2020-10-02 07:06:00 +10:00
elecpower 1e0e22955d Refactor to Model level ui datamodels for sources, switches and curves 2020-09-17 14:30:20 +10:00
Neil HorneandGitHub 5a500cc055 Companion enhanced telemetry sensors context menu and other refinements across context menus (#7716)
Companion enhanced telemetry sensors context menu with reference updates
2020-09-04 18:36:58 +02:00
DanielGeAandGitHub 5d4f6679e5 Remove Avr boards (#7713)
Remove AVR
2020-06-22 16:52:52 +02:00
Neil HorneandGitHub 5cf4e9be4e Add basic context menu to telemetry sensors in companion model edit (#7500) 2020-04-09 10:32:57 +02:00
Bertrand SongisandGitHub 38931d9cb6 Bsongis/issue 6798 (#6818)
* Avoid conversion of unused sensors
* Allow conversion of R9M sensors
* Conversion fixes in Companion
2019-09-23 15:29:49 +02:00
Bertrand SongisandGitHub 0fe2b8918b Bsongis/companion import issues (#6698)
Companion import / export issues
2019-09-02 15:29:27 +02:00
Raphael Coeffic 4c12aac16c display receiver or module name for each sensor (if available) 2019-08-22 06:21:31 +02:00
Raphael Coeffic b3c6301e5a shorter string 2019-08-20 10:49:25 +02:00
Raphael Coeffic 5fa820f98d added receiver display to sensors 2019-08-20 00:50:28 +02:00
Raphael Coeffic e677bbdba5 added rssiSource 2019-08-14 13:34:08 +02:00
Bertrand Songis f32e9625c2 X3 EEPROM / simulator support added 2019-05-10 00:08:46 +02:00
Kilrah 8a56cbd577 No topbar on horus 2018-10-18 11:43:39 +02:00
Max Paperno 62608cdc7d [Companion][TelemetrySensorPanel] Fix signed/unsigned compare warning. 2018-09-19 05:23:41 -04:00
Max Paperno 0ea4b9ed9b [Companion][TelemetrySensorPanel] Fix offset decimals not updating properly when sensor precision is changed. 2018-09-19 03:58:46 -04:00
Kilrah bf5e5874b4 [Companion] Set decimals first on autospinbox or value can be truncated (fix #6094) 2018-08-25 21:03:45 +02:00
Bertrand Songis 2c47883cc2 Companion GCC8 warnings removed 2018-08-05 19:33:28 +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 b76a0a8789 Minor cleanup on RawSourceItemModel and TelemetryCustomScreen. 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
Max Paperno 41419b4cee [Companion] Move some single-use functions out of helpers module; cosmetics. 2018-06-04 05:15:16 -04:00
Max PapernoandBertrand Songis f018425e12 [Companion] Qualify all translation strings (#5557)
* [Companion] Qualify all remaining QObject translations with proper class/object names; Centralize some common strings into constants.h.

* [Companion] Replace all instances of some common strings with macros from constants.h.

* [Companion] Fix translation warnings from lupdate.
2017-12-25 13:36:34 +01:00
Max PapernoandBertrand Songis 76ce186bd4 [Companion] Adjust source value ranges and editors in LS/CF/Telemetry (#5437)
* [Companion] RawSourceRange: Fix for timers and RTC; Remove unused "single precision" flag and logic; Add logic for "short" timer handling.

* [Companion] Add TimerEdit class for editing negative times; Implement TimerEdit in LS, CF, and Telemetry (bars) editors;

* [Companion] Refactor LogicalSwitchesPanel for fewer & more efficient updates; Fix newly-added LS not being available in source lists; Fix bug with timer/rtc comparison values getting reset to value of spin box instead of time editor.

* Add forgotten #include.

* [Companion] LogicalSwitchesPanel: Update raw sources list upon screen refresh (fixes #5374); Improve data entry in spin boxes (fixes #5375).

* Make gcc happy.

* [Companion] Set proper RawSourceRange for GVars, trims, mixer scripts, and sticks/switches/cyclic/MAX.

* [Companion] Fix backwards precision/range logic on telemetry sensors offset spinbox; Fix other minor range issues with ratio & offset.

* [Companion] Remove short limit on min/max timer values for LS & telem. bars.

* Switch to TimerEdit in maxLibQt.

* Fix gcc build.

* Remove unused files.

* Caps fix.
2017-12-19 12:17:49 +01:00
Arne SchwabeandBertrand Songis 8e07f9b0f4 Allow to disable telemetry alarams (#4981)
* Allow to disable telemetry alarams

This mainly useful for cheap transceivers that have telemetry but no power amplifier and very limited range of often 10-20 meters. This includes fishpepper's tinyFISH FC (and its legal/illegal clones) and also Spektrum BNF models.

* Always disable a warning when RSSI Warnings are disabled

* Compile fix

* Fix typos, also mute sensor lost

Refactor the FrskyRSSIAlarm[2] into a EEPROM compatible RssiAlarm struct

* Compile fixes

* Also refactor Companion

* Cleanup unused datastruct on ARM

* Compile fix for AVR

* Change int to uin8_t for avr

* Fix strings
2017-06-14 23:34:27 +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
3djcandBertrand Songis 627347a48c Horus as vario handling too (#4700) 2017-03-27 18:59:34 +02:00
Bertrand Songis 1924d28be3 [Companion] Fixes 2017-01-18 15:25:43 +01:00
Bertrand SongisandGitHub a65aa3d6c7 [Companion] Work in progress - QTreeView in MdiChild (#4197)
[Companion] QTreeView in MdiChild, Horus and X7 support added, fixes for #4224
2017-01-15 17:45:57 +01:00
Andre Bernet 625babc55e Companion modification propagation fixes (Fix #4155 and #3254) 2016-12-24 11:31:57 +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
Damjan Adamic 3fb853c8b8 Re #3454: sensor persistent fixes (ported from master)
* Only clear sensor.persistentValue when the sensor.persistent is disabled and not on every shutdown.
* Only show persistent option for calculated type sensors (only these actually get saved in EEPROM)
2016-05-02 19:38:57 +02:00
Damjan Adamic 92c76b5884 Fixes #3372: Telemetry mode "FrSky D (cable)" choice was missing for Taranis (ported from master) 2016-04-28 12:52:50 +02:00
Bertrand Songis a84357ad0b Qt warnings removed 2016-04-09 11:12:03 +02:00
Bertrand Songis aec2170e7e Move to Qt5 and Qt5Multimedia 2016-03-10 07:12:44 +01:00
Damjan Adamic 400a6c2034 Fixes #3146: fixed Fahrenheit temperature conversion error (if PREC was not 0) (ported from master) 2015-12-26 19:40:58 +01:00
Damjan Adamic 2518ed9a74 Fixes #3121: Companion telemetry sensors Ratio and Offset value increment/decrement ignores precision (ported from master) 2015-12-26 16:08:10 +01:00
Damjan Adamic d734e3465d Fixes #3117: Telemetry sensor Ratio parameter rounding problem fixed (ported from master) 2015-12-26 16:08:03 +01:00
Andre Bernet a1d44d4d9f Telemetry custom screen changes didn't emit modified signal (Fix #3029) 2015-11-07 21:14:48 +01:00
Andre Bernet 455f9bfde2 Some defaults missing when changing telemetry formula, update propagation issues (fix #2928) 2015-09-25 10:47:46 +02:00
Bertrand Songis fbb5adcebb Fixes #2875 2015-09-14 21:35:02 +02:00
Andre Bernet 3920cc6919 Fix #2794
French translations
2015-08-28 12:49:40 +02:00
Bertrand Songis 55b5acb62e Constants renamed 2015-08-28 09:19:02 +02:00
Bertrand Songis ed05174fc8 PrintDialog / CompareDialog refactoring 2015-08-23 09:54:15 +02:00
bsongis dad815f631 [Companion] AutoCheckBox used instead of QCheckBox 2015-07-27 07:36:38 +02:00