Commit Graph
9274 Commits
Author SHA1 Message Date
Max PapernoandBertrand Songis 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
joaquinsandDamjan Adamic 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
3djcandDamjan Adamic 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 PapernoandBertrand Songis 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
Bertrand Songis e99e47aeac [X7] Text view fix - #4143 2016-12-17 23:15:34 +01:00
Bertrand Songis 00ab6e2294 [X7] SH fix - #4143 2016-12-17 23:09:42 +01:00
Bertrand Songis ad8df76c37 [X7] Screenshots fix - #4143 2016-12-17 14:14:16 +01:00
Max PapernoandBertrand Songis a2e37c5dbc Minor build fixes (#4142)
* [480x272] Fix compiler warnings with awkward extern define in layout.h.

* [firmware][misc] Fix build error with undefined SPLASH; Fix 128x64 syntax error in model_setup.cpp; Fix compiler warning on static init in diskio.cpp.

* [480x272] Revert "Fix compiler warnings with awkward extern define in layout.h." and modify lcd::drawSource() to use mixsrc_t for consistency.

This reverts commit d85d994c877a94c1933c6ece806565ca822d0f54.

* [firmware] Cleanup struct init in diskio modules.
2016-12-17 13:48:55 +01:00
Max PapernoandBertrand Songis 143f5ce05e [simu] Fix Windows builds with SD-enabled targets; Centralize SD check condition. Make some compiler checks more specific (eg. !minGW). (#4144) 2016-12-17 13:41:16 +01:00
Max PapernoandBertrand Songis 5d5dc67605 Add runtime Lua script pre-compilation and general .luac file support (#3318) (#4119)
* [simu] simpgmspace: Populate file date/time/size  in f_stat(); Add f_utime(); Fix f_getcwd() on Windows; Fix f_mkdir() build error on Windows.

* [Lua] Add runtime support for script pre-compilation. Changes behavior with LUA_COMPILER (Re: https://github.com/opentx/opentx/issues/3318):
  All .lua scripts are now compiled and saved to binary "bytecode" file (.luac extension) upon first execution;
  Scripts are also automatically re-compiled if .lua source file is newer than existing .luac file;
  The pre-compiled .luac version is loaded if modification time is newer or equivalent to .lua source file;
  If a .luac version of a script exists, then the .lua version does not need to be present;
  Guards against bytecode compatibility issues (binaries from 64-bit sim will not run on 32-bit sim/radio);
  In SIMU and DEBUG builds, the source .lua file is always preferred in order to preserve full debug info (this is is controlled with new LUA_SCRIPT_LOAD_MODE macro, see lua_api.h);
  GC is now run after each script is loaded.

* [Lua] Add loadScript() API function as alternative to loadfile() from Lua base. This can take advantage of the new OTx script pre-compilation features to reduce memory footprint when loading functions dynamically. This is an interface to luaLoadScriptFileToState(). Fully documented.

* [SD][Lua] Flexible file extensions support:
  Allow for variable length file extensions throughout system (no longer hard-coded in LEN_FILE_EXTENSION);
  Fixes issues with renaming files in SD manager which have file extensions longer than ".ext";
  Expand general support for multiple file extensions per file type in sdListFiles() (eg. .lua and .luac for scripts);
  Lua scripts with .luac extensions can now be selected in custom/telemetry/function menus even if no .lua version exists (duplicates are not shown);
  .luac files can now also be executed from SD file manager UI.

* [Build] Added CMake options for LUA_COMPILER and LUA_SCRIPT_LOAD_MODE.

* Cosmetics.

* [SD][gui] Improve efficiency of some file name handling routines in sdmanager GUI and sdListFiles() by extending getFileExtension() function. Use shared isExtensionMatching() in place of isImageFileExtension(). Only allow executing .luac files when LUA_COMPILER defined (as per request).

* [simpgmspace] Fix f_mkdir() for MSVC build and misc. cleanup.

* [Lua] Use getFileExtension() in script loader to determine file type and check for buffer overflow.
2016-12-17 10:56:40 +01:00
Bertrand Songis 28006d26a9 Cosmetics - will help for #4142 2016-12-17 10:45:56 +01:00
Andre Bernet 1182f80e64 Symlimits should be always on on ARM platforms 2016-12-16 23:58:55 +01:00
Damjan Adamic d6d91b5798 Fixes #4129: error in lua documentation of model.setGlobalVariable for flight mode parameter 2016-12-16 19:21:38 +01:00
Bertrand Songis a7e7050af3 2 new sensors parsed in sport-parse.py script 2016-12-16 18:52:44 +01:00
Bertrand Songis d35736732b [X7D] EEPROM support fixes 2016-12-16 07:29:14 +01:00
3djcandBertrand Songis e2a18d3fdc Deletion confirm changed from filename to modelname(filename) (#4100)
* Deletion confirm chnaged from filename to modelname(filename)

* Improvements based on Bsongis remarks

* Fix taranis confirm that was not displaying anything

* Got carried away, back to a simpler requirement

* Cosmetics

* Bertrand's feedbacks, take 2 :)

* Use reusable buffer
2016-12-15 20:14:33 +01:00
3djc 6e7eb99763 Typos 2016-12-15 19:07:31 +01:00
3djcandBertrand Songis 0c7c77706d Add X7 sdcard pack generation for nightlies22 (#4140) 2016-12-15 18:30:37 +01:00
3djcandAndre Bernet 822083300e X7 bootloader improvement (#4139) 2016-12-15 18:30:20 +01:00
Andre Bernet 1f46295c68 [128x64] Fix failsafe press-to-set 2016-12-13 15:29:54 +01:00
Andre Bernet 71a354c1a0 [X7] Too many horizontal lines completely screw the X7 LCD - removing the rectangle solves it, still clear enough 2016-12-13 15:22:20 +01:00
3djcandAndre Bernet 2dd220e1b9 Fix copy and move not happening on X9E (#4130) 2016-12-13 13:20:05 +01:00
Andre Bernet fbe11119b8 Fix battery bars on small screens 2016-12-13 12:34:36 +01:00
Andre Bernet 6f325886a1 Fix X7 battery voltage calibration 2016-12-13 12:16:36 +01:00
Bertrand Songis 82d6b96f8b X7D renamed to X7 2016-12-12 07:39:51 +01:00
Bertrand Songis 7b5dfd7de5 [X9D/X7D] FrSky splash is now an option 2016-12-11 21:05:29 +01:00
Mike MorrisonandDamjan Adamic 4f47c13efc fix log playback when log frequency is .1s (#4115) 2016-12-11 20:36:30 +01:00
Damjan Adamic 4233e71954 Lua docs updated 2016-12-11 20:11:56 +01:00
Damjan Adamic a4d899844e Re #4125: New functions usbStart() and usbStop() to make USB code cleaner 2016-12-11 16:28:23 +01:00