Max Paperno
a93ab235be
[Companion][MdiChild] En/disable radio settings and model copy/paste actions when clipboard changes externally (another MDI window or CPN instance).
2018-09-19 17:21:38 -04:00
Max Paperno
f8afc40198
[Companion][Boards] Remove final usage of two function alias macros.
2018-09-19 06:47:36 -04:00
Max Paperno
681bc82185
[Companion] Move CHECK_IN_ARRAY() to macros.h; Change DIM() return type; Refactor/fix removeAccents() to handle uppercase.
2018-09-19 06:47:36 -04:00
Max Paperno
b4d992f490
[Companion][Firmware] Make Option struct a member; Add/use typedefs for options group and list; Use accessor functions for languages and options; Re-arrange fw options a little for better layout in UI; Remove dead code, cosmetics.
2018-09-19 06:47:36 -04:00
Max Paperno
13b156402f
[Companion] Verify that radio type in chosen profile actually exists, and add warning to the contrary (at startup and also on profile switch); Add/move some functionality to AppMessages and make it classy (todo: rename file).
2018-09-19 06:47:35 -04:00
Max Paperno
fdcee1ca9f
[Companion][Firmware] Cosmetics on translation calls.
2018-09-19 06:47:35 -04:00
Max Paperno
02655d055c
[Companion][Firmware] Remove all AVR flavors and options from available firmwares list, but keep base types for import purposes; Consolidate "ARM9X" flavor options; Consolidate Rf options.
2018-09-19 06:47:35 -04:00
Max Paperno
d8a06158b1
[Companion][AppPreferencesDialog] Refactor firmwareOptionChanged(), getFirmwareVariant(), & populateFirmwareOptions() for clarity/efficiency; Remove AVR-only "voice" option handling and related items; Add getBaseFirmware().
2018-09-19 06:47:35 -04:00
Max Paperno
62608cdc7d
[Companion][TelemetrySensorPanel] Fix signed/unsigned compare warning.
2018-09-19 05:23:41 -04:00
Max Paperno
1b00fd2a9d
[Companion][TelemetrySimulator] Fix sending of A3/A4 values ( closes #6177 ); Adjust some min/max value ranges which were too small, and individual cell max values which were too high.
2018-09-19 04:00:04 -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
Max Paperno
31b9f805ea
[Simulator] Fix telemetry simulator log reader expected header for Cels column ( closes #6167 ).
2018-09-10 23:20:51 -04:00
Max Paperno
66cd99bf6b
[simu] Updates for RTOS abstraction layer; Remove further SIMU_SLEEP usages.
2018-09-08 22:04:37 -04:00
Max Paperno
a2006940db
[simu] Refactor simu startup and shutdown handling (for 2.3 branch):
...
* Use pwrCheck() as primary control point for shutdown, centralizes thread control in simpgmspace module;
* Remove main_thread_running in favor of separate variables for startup mode and shutdown flag;
* Don't start a thread for ARM startup, just run simuMain() directly (the thread just exits anyway);
* Refactor SIMU_SLEEP() macro, and remove all unnecessary uses of it, also remove SIMU_SLEEP_NORET;
* Add startType param to opentxStart() to control splash and startup checks;
* Fixes backlight never turning off in simulator with "SWITCH" power button type (pwrPressed() was always true);
* Fixes simu shutdown when model checklist is displayed at startup;
* Adds stubs to possibly simulate a "soft" power button in the future.
2018-09-08 22:04:37 -04:00
Max Paperno
942ae1847d
[CLI] Update CLI to use RTOS abstraction layer; Also remove a redundant/unused runMemoryTest().
2018-09-08 19:07:43 -04:00
Max Paperno
691d3e6e33
[rtos] Make sure RTOS_WAIT_MS() sleeps > 0 ticks; Add RTOS_GET_MS(); Calculate ticks per ms at compile time; Fix field narrowing warning on RTOS_GET_TIME().
2018-09-08 18:51:36 -04:00
Max Paperno
b6a97318ec
[Companion][FirmwarePreferencesDialog] Update the displayed latest firmware version number after a download completes.
2018-07-16 18:38:36 -04:00
Max Paperno
989abd017e
[Companion][downloadDialog] Canceling the download dialog during download now terminates the active network request and removes the file.
2018-07-16 18:37:00 -04:00
Max Paperno
71fd6dfa47
[Companion][AppData] Fix firmware version storage path when reading.
2018-07-16 18:34:21 -04:00
Max Paperno
8d00e1dc8c
[Companion][MainWindow] Allow aborting version update check network request.
2018-07-16 17:48:19 -04:00
Max Paperno
34e1075582
[Companion][AppPreferencesDialog] If not ALLOW_NIGHTLY_BUILDS then either hide nightly channel option, or if user already has it selected then display a warning (in case they also have nightly installed in parallel).
2018-07-16 17:39:22 -04:00
Max Paperno
df5722717a
[Companion] Centralize download URLs; URLs now based on build major.minor version macros; Remove AVR fw download URL; Make some QStrings cheaper.
2018-07-16 17:36:33 -04:00
Max Paperno
71c5132c57
[Companion][MainWindow] Fix update check progress bar dialog remaining open when unnecessary; Also check for firmware updates even if CPN check fails with error.
2018-07-16 16:54:36 -04:00
Max Paperno
b15ac0f2e1
Merge branch '2.2' into 2.3
2018-07-16 14:01:33 -04: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
70aa7c6ad8
[Companion] Refactor FlightModePanel and TimerPanel to use shared RawSwitch data models instead of one per instance.
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
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
3b8d177861
[Companion] Start RawSource / RawSwitch data models refactor; Create RawSourceItemModel and RawSourceFilterItemModel.
2018-07-12 13:20:06 -04:00
Max Paperno
00efc0d571
Merge fix.
2018-07-12 13:15:41 -04:00
Max Paperno
7bc59784b5
Merge branch '2.2' into 2.3
2018-07-12 13:09:34 -04:00
Max Paperno
39db1b6537
[Companion][LogicalSwitchesPanel] Workaround for added LSs missing from Sources selector on LS edit page ( closes #4917 (again)).
2018-07-10 14:38:00 -04:00
Max Paperno
c408c30bc1
Fix libsimulator build MSVC warnings introduced in commit 6110bbc.
2018-07-09 13:06:38 -04:00
Max Paperno
1e6cfc373e
Rename jtag-flash -> flash-jtag
2018-07-09 12:18:40 -04:00
Max Paperno
a611281a01
Flash with ST-LINK_CLI.
2018-07-09 12:18:39 -04:00
Max Paperno
6110bbce98
Support Companion build with clang-cl on Windows (fw/libsimu not working yet due to compiler-specific macros in that code).
2018-07-09 12:02:26 -04:00
Max Paperno
d507dbb5dd
Add SIMU_TARGET build option to exclude libsimulator & simu from all/install.
2018-07-09 11:53:38 -04:00
Max Paperno
f60d3b80be
Exclude Qt rendering engine binaries from Windows Companion install.
2018-07-09 11:48:04 -04:00
Max Paperno
e24a736fc9
Merge branch '2.2' into 2.3
2018-07-08 21:01:01 -04:00
Max Paperno
10e6745e21
Don't send telemetry when main simulator is not running.
2018-07-06 15:15:14 -04:00
Max Paperno
b2713df6bb
Cosmetics.
2018-07-06 14:59:43 -04:00
Max Paperno
23aaee9ecf
[Simulator][TelemetrySimulator] Add persistent option to enable simulation when window is opened; Add option to pause simulation on window hide (was always true); Add option to set RSSI=0 on simulation pause to trigger “telemetry lost” alarm.
2018-07-06 14:03:41 -04:00
Max Paperno
4300e4b022
Merge branch '2.2' into 2.3
2018-07-05 05:30:58 -04:00
Max Paperno
66ffa18dce
[Companion] Rework SD Sync implementation:
...
~ Move UI to new FileSyncDialog class;
~ Improve UI responsiveness during operation (closes #5005 );
+ Add log verbosity option (also helps with UI response);
+ Add several filtering settings in new "extra options" panel (include/exlude patterns, symlinks, recursive, empty folders);
~ Exclude patterns ".*" and "System Volume*" by default (addresses #5213 , #5106 );
+ Sanity check file timestamps when using date comparison, future dates are invalid (addresses #5735 );
~ Folders are no longer included in file counts (total/created/etc);
~ Ignore unreadable files/dirs (also enables NTFS permissions check);
~ Switch from QMutex to QReadWriteLock.
2018-06-30 12:03:49 -04:00
Max Paperno
a236b4c59b
[Companion][ProgressWidget] Improve handling of showing/hiding details text; Speed up addMessage(); Adjust layout size policies.
2018-06-30 10:24:09 -04:00
Max Paperno
ff82a575f6
[Companion][AutoLineEdit] Add ability to work with QString data type w/out default validation.
2018-06-30 10:24:08 -04:00
Max Paperno
86fb88cdee
[Companion][AutoComboBox] Add updateValue() function in line with other Auto* widgets; Add currentDataChanged() signal.
2018-06-30 10:24:08 -04:00
Max Paperno
316a2508a5
[Companion] Add AutoBitsetCheckBox
2018-06-30 10:24:08 -04:00
Max Paperno
63476c03f3
[Companion] Implement application settings import and export via GUI and CLI.
2018-06-29 20:18:35 -04:00
Max Paperno
988c837011
[Companion] Refactor settings system (CompStoreObj/AppData/etc):
...
~ All stored properties are fully dynamic, using an extended version of the Qt Property System;
~ CompStoreObj is now QObject subclass;
+ All properties now have change notifier signals;
~ Do not store default values in settings;
+ Add _reset() and _default() functions for each property;
+ Settings import now ignores all non-existent properties automatically;
+ Add settings export functions;
+ Add more version macros;
~ Remove template functions;
~ Move DownloadBranchType and create NewModelAction enums and register with Qt meta system;
~ Multiple efficiency and optimization changes (const functions, literals, etc).
2018-06-29 20:00:10 -04:00
Max Paperno
2869d8574d
[SimulatorOptions] Add comparison operators.
2018-06-29 19:47:25 -04:00
Max Paperno
d233fa39bd
Bump version to 2.3.0 in CMakeFiles.
2018-06-29 19:44:39 -04:00
Max Paperno
0a4ca595ed
[Companion][MixersListWidget] Enable multiple selection capability on Inputs and Mixes editors ( closes #5029 ); Fix bug with custom style propagation; cosmetics.
2018-06-05 03:34:42 -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 Paperno
8de53f18e6
[LogsDialog] Fix GE export on OSX (since 9796654).
2018-06-04 05:12:57 -04:00
Max Paperno
777fc58578
[Companion][ModulePanel] Fix RF Output Power warning message display.
2018-06-04 04:51:32 -04:00
Max Paperno
e2977540d9
[Simulator][SimulatorOptions] Fix the misguided version check.
2018-06-04 04:51:09 -04:00
Max Paperno
c19b1a65bf
[Companion][MdiChild] Possible fix for "disappearing" toolbars in file editor windows.
2018-06-03 15:42:52 -04:00
Max Paperno
cd8f006d31
[Companion] HardwarePanel - fix saving of Bluetooth Mode selection (and related Qt warning), introduced in a87722b.
2018-06-02 21:10:51 -04:00
Max Paperno
40c5f0432c
[Companion] AutoComboBox - fix possible crash with null field.
2018-06-02 21:10:51 -04:00
Max Paperno
a63e0eed4c
[Companion] Fix logical switch misnumbering since a951292 ( closes #5597 ).
2018-01-05 07:27:30 -05:00
Max Paperno
397388d230
Add .user files to gitignore [ci skip]
2018-01-02 02:26:43 -05:00
Max Paperno
f5de319f40
[Companion] Remember last used log folder in Telemetry Simulator ( fixes #5583 ).
2018-01-01 22:50:52 -05:00
Max Paperno
63f6e0c43d
Fix Companion build with Qt 5.2.
2017-12-20 11:22:36 -05:00
Max Paperno
e097d88ab2
Fix build with CMake < 3.1.
2017-12-20 03:04:50 -05:00
Max Paperno
a16e64420e
[Companion] Recent files menu: show full path of each file in status bar and tooltips.
2017-12-19 21:21:20 -05:00
Max Paperno
76ee7cdd7f
Fix libsimulator builds, especially MSVC.
2017-12-19 17:58:15 -05:00
Max Paperno
b55b68f191
[Companion] Fix incorrect Settings dialog tab shown by default ( closes #5511 ).
2017-12-15 19:15:14 -05:00
Max Paperno
4e8867c819
[Companion] Include global functions and function source types in conversions.
2017-12-10 06:21:17 -05:00
Max Paperno
cffb5e767f
[Companion] Ensure proper number of model slots after radio data conversion.
2017-12-10 06:10:26 -05:00
Max Paperno
204711d313
[Companion] Fix possible out-of-bounds array access crash.
2017-12-10 06:05:41 -05:00
Max Paperno
0f34bf3850
[Companion] Fix crash when closing main window while model/radio editor is open and cursor is in a field which has editingFinished() event handler.
2017-11-27 07:05:18 -05:00
Max Paperno
f085f11ea8
[Companion] Fix custom functions availability: set timer was available on AVR and screenshot on non-Taranis.
2017-11-27 06:18:11 -05:00
Max Paperno
caa9cd3060
[Companion] Telemetry screen bar range limits were unsigned (but are signed on ARM radios), didn't allow negative values.
2017-11-25 14:56:49 -05:00
Max Paperno
b8042c9da1
[Companion] Default RSSI low and critical alarm values were reversed ( fixes #5407 ).
2017-11-25 14:36:46 -05:00
Max Paperno
1634d81e4a
Fix brackets in MEGA2560 isBacklightEnabled() macro (caused comparison warning in simpgmspace.cpp).
2017-11-21 13:21:00 -05:00
Max Paperno
9c74cc215c
Fix gvars build error on libsimulator for PCBSTD.
2017-11-21 11:54:55 -05:00
Max Paperno
655e2f9010
[Companion][AppData] Fix possible crash when importing settings from Companion < v2.1 ( fixes #5016 ).
2017-06-07 10:49:48 -04:00
Max Paperno
ca25696d1a
[Companion] Radio module setup: Fix custom failsafe no-pulse and hold options not being saved properly ( closes #4904 ).
2017-05-08 08:29:11 -04:00
Max Paperno
6abd36d628
[Simulator] Revert logic switch names in Radio Outputs view to numbers-only (since @72b1ad0, closes #4877 ).
2017-04-29 20:49:04 -04:00
Max Paperno
4df32f8247
[Companion] Prevent crash when importing (converting) more models than current radio can handle.
2017-04-29 07:30:44 -04:00
Max Paperno
f9b7f567c3
[Companion] Fix Special/Global Functions action selector being reset for all lines when one line is deleted/cut/pasted ( closes #4825 ).
2017-04-23 21:10:17 -04:00
Max Paperno
111bcad9a7
[Companion] Do not create a category in new file when loading data from radio; Fix crashes when editing category name.
2017-04-12 07:18:01 -04:00
Max Paperno
a062efeb21
[Companion] Fix some Special/Global Functions editor source selection lists being broken and Action selector disappearing for simple actions with no parameters ( fixes #4775 and #4779 ).
2017-04-12 05:41:04 -04:00
Max Paperno
2808b85fce
[Companion] Clean up some AppPreferencesDialog layout size policies and fix height shrinking when options change; Fixes issues on HiDPI displays.
2017-04-12 02:51:25 -04:00
Max Paperno
924ecced98
[Companion] Fix issue with category edit and dbl-click not working after category name edit; Add translator warnings on default model names; Remove redundant variable and consolidate filename change routines.
2017-04-11 22:54:58 -04:00
Max Paperno
077a651dc3
[Simulator] Fix intermittent crc errors with telemetry simulator.
2017-04-11 21:21:09 -04:00
Max Paperno
c2ef10724d
[Simulator] Fix data not being saved back to file in standalone simulator when using .otx file with non-Horus radio types.
2017-04-11 19:12:58 -04:00
Max Paperno
350c3a6d44
[Companion] Do not run model wizard on a duplicated/copied model ( fixes #4773 ); Replace existing file extension with .otx when first saving a converted bin/hex/eepe file ( fixes #4772 ); Make sure no other models exist before setting first model as default (fix index 0 always being auto-selected).
2017-04-11 16:42:20 -04:00
Max Paperno
de3c503e02
[Companion] Fix startup switch warnings wraparound issue with X9E SQ-SR switches ( closes #3359 ).
2017-04-11 12:07:09 -04:00
Max Paperno
ee50096754
[Companion] Fix another possible crash during model conversions (divide by zero).
2017-04-07 04:46:50 -04:00
Max Paperno
629d82fe27
[Simulator] Fix trims issue with AVR simulators (build failure since 57dc015); Fix possible array bounds issue if data is corrupt.
2017-04-07 03:50:40 -04:00
Max Paperno
339592d681
[Companion] Fix model setup panel not being populated with data upon initial load (since 4c0dbfc).
2017-04-05 03:56:31 -04:00
Max Paperno
8b61cd56bc
[Simulator] Prevent two possible concurrency issues with FIFOBufferDevice/FilteredTextBuffer.
2017-04-01 20:50:13 -04:00
Max Paperno
9d3960f0f5
[Simulator] TelemetrySimulator: Fix instance values not being populated with radio settings (also now reloads instance values with rest of radio data). ( closes #4711 )
2017-03-31 13:19:12 -04:00
Max Paperno
c8be6d406d
[Companion] Replace erroneously removed File menu items ( closes #4708 ).
2017-03-27 23:03:12 -04:00
Max Paperno
aaaaf1a806
[simulation] Fix reported multi-position switch output being outside of normal range due to SIMU exception in mixer.cpp.
2017-03-27 01:31:59 -04:00
Max Paperno
64e960adc5
[Simulator] Fix startup error in standalone mode when eeprom file does not exist (create file instead, as usual).
2017-03-24 03:40:31 -04:00
Max Paperno
d82244adc0
[Companion] Allow translating some "missing" strings (fixes lupdate warning in multiprotocols.cpp).
2017-03-23 15:27:08 -04:00