1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00
Commit graph

9299 commits

Author SHA1 Message Date
Bertrand Songis
1d9c9a6cdb Cosmetics 2017-01-04 18:31:10 +01:00
Bertrand Songis
b77332e75a [Horus] Fixes #4177 2017-01-04 09:27:57 +01:00
3djc
bdf3d17652 Move fix to a better place 2017-01-03 11:42:12 +01:00
3djc
406a568c2c This fixes #4191 while maintaining 2.1 and 2.2 taranis behavious (ie instant trim can go up to extended trim, ignoring if extending trim is activ or not) 2017-01-03 10:57:34 +01:00
Damjan Adamic
659f9e0556 Fixed a problem with MSVC 2017-01-02 22:36:46 +01:00
3djc
f8c6b20a35 Add missing units (#4181)
* Add missing units

* Add import shift
2017-01-02 11:32:54 +01:00
Damjan Adamic
803dc7d853 Projectkk2glider/issue 4138 and other fixes (#4182)
* Fixed Companion translations cmake target

* Some translations had problems with string termination (missing or excessive " characters)

* Fixes #4138: Use [RTN] instead of [EXIT] on Horus

* Define spare bits if BUZZER is not defined
2017-01-02 11:31:55 +01:00
Damjan Adamic
afe3d4a1e9 Custom OpenTX types moved to separate file opentx_types.h, fixes linker problem with lcdDrawBitmapPattern() in release build (#4188) 2017-01-02 11:29:20 +01:00
3djc
2a0a75a178 3djc/horus narrow arrows gap (#4183)
* Narrow gap between previous char and up and down arrow in STDSIZE

* Change font generator too and run it once

* Only apply to stdsize
2017-01-02 11:24:43 +01:00
3djc
b931b0c85c Add handling of negative width (#4187) 2017-01-02 11:20:56 +01:00
Andre Bernet
eb4508e12d [companion] Add zh_CN Chinese translation (fix #4179)
Fix lupdate working dir
2017-01-01 09:25:00 +01:00
Max Paperno
bcdc4fef88 [libsimulator] Fix MSVC build. 2016-12-31 11:42:54 -05:00
Max Paperno
ebdc73a421 [simulator] Fix standalone simulator radio type name in window title. 2016-12-30 19:12:20 -05:00
Max Paperno
5bf7a6c28d Simulator key/mouse mapping improvements (#4175)
* [simulator] Keyboard and mouse control adjustments:
  ~ Make kay/mouse navigation more consistent between radios and ensure keyboard events are always properly detected (eg. after clicking on a control);
  * Fix mouse wheel direction for rotary encoder emulation (fixes https://github.com/opentx/opentx/issues/4160);
  * Fix page up/down buttons on Horus (also #4160);
  ~ Horus rotary encoder can now be controlled with +/- keys (also keeps X/C, otherwise supersedes https://github.com/opentx/opentx/pull/4087 );
  ~ DEL key now another alternative for ESC/BKSP (brings all controls to number pad);
  ~ "=" key now acts same as "+" key (+ requires SHIFT in main row on most US keyboards);
  * Fix controls direction when using mouse wheel over RC switches;
  + Add help text showing keyboard mappings for each radio type (activate on F1 key).

* [simulator] Enable mouse wheel scrolling on radios w/out a rotary encoder (acts as +/- keys on X9D, PU/DN keys on 9X).
2016-12-30 22:36:29 +01:00
3djc
1d3b6721c6 If no WIZARD are present, do not display anything (#4173)
* If no WIZARD are present, do not display anything

* Cosmetics

* More cosmetics ;)

* String cleanup

* Bertrand's feedbacks
2016-12-30 18:20:46 +01:00
Max Paperno
1eead1504c Clean up build warnings (#4169)
* [build][OSX] Fix clang warnings.

* [build][OSX] A few more warnings taken care of.

* [build] Fixed yet more build warnings across all platforms.

* [build] Fix final warning due to bad CMake flag.

* [build] Remove unused variables as requested, fix indent.

* Fix output display limit type for 8-bit targets.
2016-12-30 18:16:11 +01:00
Raphael Coeffic
1666fd7355 lua: added EVT_MENU_LONG on Taranis (#3991) 2016-12-28 22:39:59 +01:00
joaquins
5e00436b79 Horus outputs widget: display channel name when available (issue #4145) (#4147)
* Display channel name instead of number, when name is non-empty

* Bars made full width, channel + name on left side, output value on right side. Background color added.

* Reverted redefinition of chanString, background color changed to BARGRAPH_BGCOLOR

* Added borders around bars

* Added BG border configuration. Refactored RECT_OFFSET into RECT_BORDER to allow easy change in border thickness.

* Fixed vertical line offset.

* BG settings affecting actual BG, not the border
2016-12-27 22:07:49 +01:00
Max Paperno
e204031ef6 Standalone simulator startup options (#4164)
* [simulator] Save and restore Simulator window sizes and positions (based on current radio profile).

* [simulator] Set startup throttle stick lock in standalone sim based on default mode in current Companion radio profile;
  Add new flag indicating standalone simulator;
  Unique titles for simulator console windows.

* [simulator] New/updated Simulator startup options:
  Radio profile used for standalone Simulator can now be separate from Companion;
  Allow selecting a radio profile and EEPROM image file (in addition to radio type) at startup via GUI and CLI;
  All startup settings are saved between uses.
2016-12-27 22:04:24 +01:00
Damjan Adamic
fd01376f1e Reduced Companion simulator CPU usage by a factor of 5. (#4167) 2016-12-27 22:00:23 +01:00
Andre Bernet
625babc55e Companion modification propagation fixes (Fix #4155 and #3254) 2016-12-24 11:31:57 +01:00
Max Paperno
8f74388ae1 [companion] Fix CP1252 Windows build warnings by reverting arrow character encoding (fixes https://github.com/opentx/opentx/pull/4154#discussion_r93789409) 2016-12-23 18:44:56 -05:00
Max Paperno
e90bd0fd70 Enable Windows build with Qt5.5+ & MinGW-w64 (#4150)
* [Windows][MinGW] Update some WIN32 macro checks in source code to be MSVC-specific (not needed for GCC-based builds).

* [build] CMakeLists updates:
  Adjust for Windows MinGW builds: now fully compatible with Qt5.5+ and MinGW-w64 toolchain (included in Qt installs);
  Add option to specify path to required libraries/includes (instead of hard-coding `c:\programs`);
  Add package check for Python and use found executable name;
  Remove custom FindSdl package handler in favor of stock (and improved) CMake one (still works with Windows);
  Do not force SIMU_AUDIO and LUA_COMPILER in SIMU builds (leave it up to user);
  Add SIMU_LUA_COMPILER option specifically for SIMU builds (default = ON);

* [build][Windows] Rewrite/Fix Windows Companion `install` target, with two options:
    a) just copy supporting Qt and c++ DLLs to build folder so programs can be quickly be run from there (this is default and similar to the old behavior);
    b) full installation to CMAKE_INSTALL_PREFIX path, including all binaries, supporting DLLs, language files, and OTx utilities.
  Option b) can be selected with new WIN_DO_FULL_INSTALL parameter;
  Also cleans up the Linux install a bit and consolidates the OS X parts;

* [simulator][Windows] Add option to build Windows simulator with system console/terminal enabled (both standalone and when launched from Companion). Mostly useful for debug as it gives output messages much sooner in the startup process than the current debug console. Also helpful because you don't have to open it manually on every launch, and it remembers last window position and size. Possible candidate for a user-selectable runtime option in the future.

* [Windows] Fix MSVC build issues.

* [build] More build fixes:
  Use a customized FindSDL.cmake script again due to bugs and deficiencies in the official version (based on script from CMake v3.7);
  Fixes missing SDL DLL error in NSIS installer);
  Use string for Timers option (checkbox in GUI is confusing);
  Remove an unused variable.

* [simu][Windows] Fix f_getcwd() cutting off too many characters (fixes SD browser interactions).
2016-12-24 00:11:07 +01:00
Arne Schwabe
06b0694f03 Schwabe/multi telemetry (#4151)
* Add FY805 protocol

* Fix stray space

* Fix multi sending 120% instead of 100%.

* Implement a custom telemetry for the multi module

The custom telemetry allows the module to tell the telemetry protocol to OpenTX and also allows signaling the status of the Module (e.g. invalid protocol) to OpenTX

This should also close #3979.

* Cosmetics and a few small bugfixes

* remove empty if

* Move status line directly below the mode to be always visible when selecting a protocol

* warn if internal RF module is on

* Replace sprint with small helper function to build on AVR ARM (AR9X, 9XPRO, …)

* TR in wrong order, RF_PROTO_OFF inverted

* Refactor definition of Multimodule protocols to have one central place to define all multi protocol properties

* Also update protocols in companion

* Update multi version number to display as a.b.c.d
2016-12-24 00:04:11 +01:00
3djc
d1ef22ee47 3djc/taranis draw number review (#4157)
* Move to Horus style implementation

* TINSIZE handling

* Fix timers

* Add the option to align left on first digit (ie '-' if left of alignment point)

* Compile fix

* Reduce DBL font dot size

* Get ready for PR

* Remove unused function

* Remove leftover declaration

* Performance

* Cosmetics
2016-12-23 23:57:32 +01:00
Max Paperno
b0de35f57d Reduce width of all simulator windows (#4154)
* [simu] Reduce width of all simulator windows and also height of Horus window. (https://github.com/opentx/opentx/issues/3135)

* [simu] New vertical channel outputs layout for all simulators, all outputs in one window and horizontally scrollable. Consolidate outputs and gvars widgets to one code base for all sims. Make simulator dialog re-sizable.

* [simu] Make simulation dialog resizable, and greatly reduce minimum size requirements of all simulators. Introduces new VirtualJoystickWidget class with all controls. Simplifies every simulator dialog UI form.
2016-12-23 23:56:28 +01:00
Bertrand Songis
df835da07d [X7] Typo 2016-12-23 23:51:51 +01:00
Bertrand Songis
74c03f0d4e [Horus] Companion default types for switches / pots / sliders 2016-12-23 23:49:51 +01:00
joaquins
d9981b25d9 Fixes #4085: Horus simulator rotary control improvements (#4087)
* Fix for issue with trackpad & mouse wheel: Small movements up or down send delta=0, causing always events in the same direction.
* Changed keys to X,C
2016-12-23 20:13:00 +01:00
3djc
bab5fc339e Lua setTelemetryValue() function fixes (#4158)
* Protect subId, prevent endless loop in sensor discovery if more than 7 is passed.
* Documentation updated
* Add additional parameter checks
2016-12-23 19:32:39 +01:00
Andre Bernet
1b43d8993e [128x64] French translations 2016-12-20 00:30:36 +01:00
Andre Bernet
ca7d82fc5b UI cosmetics 2016-12-20 00:17:50 +01:00
Bertrand Songis
226877ec1e [X7] SD Manager fix (when coming from Text view) - #4143 2016-12-19 23:58:25 +01:00
Andre Bernet
cdc739a663 Forgot about poor old 9x 2016-12-19 23:26:32 +01:00
Bertrand Songis
7343ad0de5 Warnings removed 2016-12-19 23:20:11 +01:00
Bertrand Songis
7da9aa811a [TARANIS/HORUS] UNEXPECTED_SHUTDOWN() macro improved following @projectkk2glider advice 2016-12-19 23:11:37 +01:00
Andre Bernet
1d42d329cf Text view scroll for X9E 2016-12-19 22:37:30 +01:00
Andre Bernet
a2a88ae8d2 [128x64] Fix LS V2 display format 2016-12-19 22:03:08 +01:00
Andre Bernet
6b80e6572b [128x64] Telemetry item handling in Reset SF 2016-12-19 21:31:14 +01:00
Andre Bernet
2b56ea70df [128x64] UI fixes, French translations 2016-12-19 21:26:12 +01:00
Bertrand Songis
86ee899905 [X7/X9/SKY9X] Bad handling of UNEXPECTED_SHUTDOWN ! 2016-12-19 19:44:32 +01:00
Bertrand Songis
d52f89674c [X7] Pots calibration fix - #4143 2016-12-19 17:52:16 +01:00
Bertrand Songis
880216c544 [X7] Text view fix - #4143 2016-12-19 17:51:22 +01:00
Bertrand Songis
eb3da74331 [X7] Telemetry scripts terminated with [EXIT Long] - #4143 2016-12-19 17:50:03 +01:00
Andre Bernet
aabbc375a3 Add dot and "W" to TINSIZE font 2016-12-18 20:20:39 +01:00
Bertrand Songis
2fdf621b2f Typo - Fixes #4149 2016-12-18 09:53:52 +01:00
Bertrand Songis
fa0cc546e4 Compilation fix 2016-12-18 09:45:37 +01:00
Bertrand Songis
66fb949c82 [HORUS] Arbitrary limit for themes / layouts / widgets now removed 2016-12-17 23:33:47 +01:00
Max Paperno
bce42bb25c Fix static initialization order problem with Horus GUI (#4141)
* [480x272] Fix static initialization order problem with Layout, Theme, & Widget factories.

* [480x272] Fix return from drawTimerMode().

* [480x272] Remove use of macros for registered Layout, Widget, & Theme class lists; remove extern declarations (cosmetic).

* [480x272] Convert Layout and Theme registry to dynamic lists (still max. of 10 each);
  Hide indicator arrow when user is at start/end of available widgets in spinner UI;
  Add some sanity checking to pointer usage in screens_setup;
  Add an (arbitrary) limit of 20 Widgets;
  And a line break! :)
2016-12-17 23:29:26 +01:00
Bertrand Songis
d4d3d51a9d [X7] Sources / Switches popup menu fix - #4143 2016-12-17 23:26:35 +01:00