1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00
Commit graph

3175 commits

Author SHA1 Message Date
Bertrand Songis
91a042200b Fixes #4619 (#4645) 2017-03-21 07:45:05 +01:00
Max Paperno
4aa0c1bbe4 [simulation] Fix some potential crashes & 26 memory leaks, improve LCD redraws. (#4634)
* [simulation] Hardening: Fix some potential crashes & 26 memory leaks, improve LCD performance.
  * [simpgmspace] Init trims; Make sure `REa` is really defined (to match board files).
  * [simpgmspace][opentxsimulator] Verify current running state before start/stop; Move rotary enc. init.
  * [simpgmspace][LcdWidget] Improve performance by moving LCD content change check to lcdRefresh() & limiting LcdWidget refresh time to 60 fps max.
  * [simueeprom] Ensure thread could be started, set default running state to false.
  * [simufatfs] Fix paths report trace.
  * [eepromimportexport] Fix memory leaks resulting from import debugging scheme being used.
  * [customdebug] Introduce new scheme for custom debug output in compliance with Qt recommendations (see docs for QLoggingCategory).
  * [opentxeeprom] Fix extra conversion table cache elements being created and also not properly deleted (and hence leaking).
  * [opentxinterface] Unregister EEpromInterfaces in unregisterOpenTxFirmwares();
  * [storage] Unregister storage factories on exit (fixes leak); create virtual StorageFormat/StorageFactory destructors (prevents warnings).
  * [helpers] GVarGroup now emits own signal, no need to pass ModelPanel pointer (removes dependency on modeledit.h)
  * [DebugOutput] Clear simulator trace hook before exiting (prevent possible issues); Fix leak and possible bad QString allocations when reading from buffer; Fix leak with combo box event filter.
  * [TelemetrySimulator] Fix leak by deleting LogPlaybackController object on exit; Only set up data fields once; convert timers to static.
  * [build] Consolidate all Companion/Simulator shared items in `common` library to reduce build time/etc (node & edge still remain awkward).

* [simulatorwidget] Delete removed spacer object (previously-forgotten "26th" leak).

* [DebugOutput] Fix stray trailing characters issue with new text buffer allocation (from previous commit); Increase maximum buffer sizes to better accommodate slower systems.

* Cosmetics.
2017-03-21 07:43:40 +01:00
LapinFou
8ae0bb88fa @3djc send me the new French .ts file. 2017-03-20 16:47:53 +01:00
Andre Bernet
b8e0f26a22 Cosmetics 2017-03-20 10:31:39 +01:00
Andre Bernet
22217e8e22 [companion] Replace voice download by SD download, new URL for 2.2 (sd-22.open-tx.org, needs to be created) 2017-03-20 10:24:43 +01:00
Andre Bernet
b01de7797c Remove dangling empty file after download error 2017-03-19 17:22:15 +01:00
Andre Bernet
91b4ff60c6 Multi can now be exported to all ARM boards 2017-03-19 16:47:40 +01:00
Andre Bernet
0362ddbc94 No more templates on ARM (since they all support virtual inputs now) 2017-03-19 16:18:48 +01:00
Andre Bernet
7628866def Register .otx files on Win 2017-03-18 23:59:57 +01:00
Franck Aguerre
49d1aafc1b Jivarofad/m2560 update (#4593)
* New drivers : buzzer/speaker, voice wtv20 / jq6500 , i2c

First commit, testings to be done

* Voice correction

* Better way to drive voice modules

Same thing as LCD drivers

* Issue #2337 (error mismatch) solved

* Font correction

* Fonts correction again

* oups...

* Voice modules (Companion) & flash saving (ST7920)

* Documentation update

* I2C driver correction

* Mega2560 directory renamed to mega2560

* M2560 driver correction

* Voice directory correction

* Voice=ON does not works with MEGA2560 (OFF/WTV20/JQ6500)

* Compliant to cmake documentation

* On M2560, audioAVR use playnumber et playduration declared in voice.h
Don't know why, must be discuted...

* ‘{’ token forgotten

* Simplier way for AVR voice
2017-03-18 09:44:47 +01:00
Bertrand Songis
04d506b1e4 Fixes #4587 2017-03-15 17:45:55 +01:00
Sebastien Charpentier
13cf25e829 French translation for the new simulator (#4602)
* update fr translations file for LapinFou

* Intermediate version.

* Intermediate version.

* Updated most of the new stuff.
Remaining: new simulator windows.

* 1st final version based on OTX 2.2.RC11
2017-03-14 18:25:40 +01:00
Max Paperno
2fb92e3d23 [Companion] Fix missing curve image(s) in model printer (fixes #4612). 2017-03-14 11:25:53 -04:00
Arne Schwabe
3de35e5b60 [AR9X/9XPRO] Fix multi module not selectable for not Frsky radios (fix #4607) 2017-03-14 11:36:47 +01:00
Damjan Adamic
97734f2d9a Fixed a leak in Companion import: name can't be const char, it must store the string locally because some classes construct name dynamically. 2017-03-13 18:28:05 +01:00
joaquins
59f8ee3283 Fix #4590 (horus->x12s rename) (#4591) 2017-03-12 10:02:17 +01:00
Max Paperno
f103c8851f [Simulator] Improve middle mouse button handling over radio navigation key areas: clicks were ignored, now either activates the current key under mouse, if any, or triggers default middle-mouse action (enter/menu/rotary press). (closes #4585) 2017-03-11 20:11:45 -05:00
3djc
2144bb77e3 Remove mixermon option (make it always true) (#4573)
* Remove mixermon option (make it always true)

* Cosmetics

* Compile fix
2017-03-11 10:26:05 +01:00
Max Paperno
0a5732b953 [Simulator] Fix Radio Outputs window not updating GVars/flight mode when re-launched from Companion or restarting radio in Simulator. 2017-03-10 22:06:02 -05:00
Andre Bernet
c6ba263572 [companion] No GVAR popups on Horus 2017-03-10 19:46:47 +01:00
Arne Schwabe
1dd30598fd Also add QT5Svg_plugins bundle as QT_GUI includes all image formats but not sag 2017-03-07 12:40:38 +01:00
Max Paperno
6c493fddd9 [Companion][Simulator] Misc. minor fixes:
Fix Qt < 5.3 compat. issue in DebugOutput;
  AppDebugMessageHandler: Filter out verbose QPainter warnings on Linux Qt < 5.3; Do not return any instance if disabled entirely;
  Fix style sheet for simulator radio background.
2017-03-06 06:28:33 -05:00
Damjan Adamic
0e906162e1 Added files and scripts to enable Launchpad.net package building 2017-03-05 21:11:22 +01:00
Andre Bernet
2af7751caa [companion] Missing options for sky9x family 2017-03-05 12:39:43 +01:00
Andre Bernet
c3febf3560 [companion] Default category on new file was added at the wrong place and also created when reading form radio 2017-03-05 10:37:18 +01:00
Max Paperno
c1da4b9b4f [Companion][MdiChild] Add model context-menu actions for moving a model between categories (only if > 1 category exists). (#4555)
(ref. #4224 : Horus models cannot be moved from one category to another)
2017-03-05 08:47:10 +01:00
Max Paperno
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
Andre Bernet
d911d382f2 [companion] X7 only has 6 chars for sound file names 2017-03-05 08:42:07 +01:00
Andre Bernet
86fbb071da [companion] Horus models didn't get their defaults set (thanks @Max) 2017-03-05 08:40:16 +01:00
Max Paperno
51cad78030 [Companion][Multiprotocol] Fix exception when selecting DIY Multiprotocol Module in model editor.
Cosmetics.
2017-03-04 17:01:54 -05:00
Andre Bernet
8e3f86383c [companion] Add first category automatically when creating a new Horus file 2017-03-04 22:56:21 +01:00
Andre Bernet
8bced60784 [companion] Horus splash replacement currently unavailable 2017-03-04 22:12:09 +01:00
Max Paperno
2778040497 [Simulator] Fix 6-position switch operation (only last 3 pos. were usable and were reported incorrectly). NOTE that for these switches calibration IS important (either from actual radio settings or done in standalone Simulator/simu). 2017-03-04 15:03:08 -05:00
Bertrand Songis
6f0e58351a [Horus] Fixes #4407 (#4543)
* [Horus] Fixes #4407

* Tab replace by spaces
2017-03-04 10:15:06 +01:00
Bertrand Songis
bfb6e855e0 [Companion] Compilation fix on ArchLinux
Dones as adviced here:
https://bugs.archlinux.org/task/52956
2017-03-02 21:49:49 +01:00
Bertrand Songis
d724ec1128 Fixes #4136 - Reset all logical switch fields on change of function type - By @elecpower 2017-03-02 20:24:01 +01:00
Arne Schwabe
40dae8a8a7 [MULTI] Implement option Value adjustment in Companion (#4459)
* [MULTI] Implement option Value adjustment in Companion

Also refactor ui code to use the same multi table as the radio to make updates easier and consistent

* Fix warnings with gcc 6

* Make the whole thing more C++ like

Using QVector instead of std::vector gives me strange errors.

* Fix gcc warning

* another signedness fix

* Add missing include

* Add Gw008 protocol and move subtype definitions out of the translations

* Add note about struct

* More cleanups

Integrate @mpaperno’s latest ideas about cleaning up
2017-03-02 18:40:31 +01:00
Max Paperno
00b2799427 [Companion][Simulator] Add custom qDebug message handler/formatter (#4475)
* [Companion][Simulator] Add custom qDebug message handler/formatter as an option. Keeps support for QT_MESSAGE_PATTERN env. var.

* [Simulator] Show system messages of level qInfo and above in debug console.

* [Simulator] Still capture screenshot to clipboard if path is not accessible (and screenshot results now print to simulator debug console).

* Fix for older CMake.

* [Companion] Do not start debug message handler if app is shutting down, and add null checks before using it; Increase backtrace report depth; Add OTx headers; Add Companion exit status debug; Clean up unused code.

* [Simulator] Add asynchronous FIFO buffer for handling debug output/display more efficiently. (#4488)
(cherry-picked from b12bd7d7be)
2017-03-02 18:35:00 +01:00
Max Paperno
d8b4f8594d [Companion] Smarter app settings import from old versions... (#4485)
* [Companion] Smarter app settings import from old versions; Do not import flash tool locations on Windows which are already included with Companion (closes #4330).

* [Companion] Exclude Windows installation-specific keys when importing settings from previous versions (truly fixes #2645).
2017-02-28 17:48:52 +01:00
Jim Taylor
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
Max Paperno
171e08c2fd [Companion][ModelEdit] Fix/improve module custom failsafe value settings (fixes #4443): (#4492)
* Properly set limits based on model's Extended Limits setting;
    * Fix rounding issues between percentile display and underlying value in μs;
    * Add ability to display values in μs as well as percent.
    * Channels numbering & count is responsive to module's defined start/end channels.
2017-02-26 13:00:49 +01:00
Neil Horne
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
Max Paperno
b12bd7d7be [Simulator] Add asynchronous FIFO buffer for handling debug output/display more efficiently. (#4488) 2017-02-21 11:04:53 +01:00
Max Paperno
a19748dba7 [Companion] Fix model being moved to wrong category after wizard run (closes #4482) 2017-02-19 18:38:15 -05:00
3djc
95668a2bcf Fixes #4345: Enable print (even for model idx 0) (#4474) 2017-02-19 09:33:37 +01:00
Max Paperno
357ffd0b92 [Simulator] Debug console output listener now starts immediately upon creation; Fix debug console not printing last line in buffer; Shorten debug output print time by 2ms; Don't check buffer if not appending line; Report buffer overflow errors every 30s (if still needed). 2017-02-17 04:24:17 -05:00
Damjan Adamic
0e97d30363 DebugOutput buffer increased and overflow message only printed once. 2017-02-16 10:22:01 +01:00
3djc
aecd7d15f1 Fix companion wizard behavior for Horus (#4467)
* Fix wizard behavior for Horus (was treated like an 9X)

* Cosmetics
2017-02-16 09:19:34 +01:00
Andre Bernet
fe49fb5442 Multiprotocol working on sky9x and co (#4409)
* MULTI working on sky9x

* Fix crash with module OFF

* Cosmetics

* Compilation fix / cosmetics

* Typo....

* Multi now available on all ARM platforms

* Does this help?

* Compilation fix
2017-02-15 17:31:38 +01:00
3djc
b5798e219d Menu updates handling cat/models for Horus (#4452)
* Alt+S is properly set

* Copy menu fixed

* Cosmetics

* Better handling of model and categories signaling

* Cosmetics

* Cosmetics and handling of special case after model or cat creation

* Remove unused viableModelSelected

* Take 2

* Start work on connect to new standards
2017-02-15 16:28:39 +01:00