Commit Graph
59 Commits
Author SHA1 Message Date
Bertrand Songis ed1d312f20 Many fixes 2019-03-22 12:00:01 +01:00
Bertrand Songis 07840007de Compilation fixes 2019-03-21 20:03:25 +01:00
Bertrand Songis 2d3f268b09 Common code merged 2019-03-21 15:53:09 +01:00
Bertrand Songis d4b14f614c Popups can now have an handler. It could perhaps avoid another EEPROM format @3djc ? 2019-03-21 15:44:16 +01:00
Bertrand Songis 4de9e3f73b NAVIGATION_MENUS definition removed 2019-03-21 15:21:16 +01:00
Bertrand Songis 04ba9e5c68 Compilation fixes 2019-03-20 16:32:58 +01:00
Bertrand Songis 6277717c16 Powermeter fixes 2019-03-20 09:53:14 +01:00
Bertrand Songis 45500b062d Fixes 2019-03-20 09:18:15 +01:00
Bertrand Songis 933f323a00 Fixes 2019-03-20 08:59:29 +01:00
Bertrand Songis 775ac40aaa Powermeter added 2019-03-20 08:46:47 +01:00
Bertrand Songis 9b54d9be48 [X3] SD Manager fix 2019-03-15 19:50:33 +01:00
Bertrand Songis aee6daf0d0 Cosmetics 2019-03-09 11:23:16 +01:00
Bertrand Songis 2c454e8156 Cosmetics 2019-03-07 15:00:54 +01:00
Bertrand Songis 111b209a75 POPUP title 2019-03-07 13:45:15 +01:00
Bertrand Songis a4434bc5f3 Fixes. Flash an external module should work 2019-02-21 16:57:23 +01:00
Bertrand Songis e4fa31be28 Rename char2idx to char2zchar 2019-02-21 10:35:48 +01:00
Bertrand Songis 655966fba2 Flash internal module 2019-02-20 14:59:38 +01:00
Bertrand Songis eb453293f5 Fix register in Model Setup 2019-02-20 12:10:46 +01:00
Bertrand Songis fdaed515fc X3 UI fixes 2019-02-18 18:40:21 +01:00
Bertrand Songis c7404998f9 BIND menu added (still not tested) 2019-02-06 14:12:54 +01:00
Bertrand Songis aaa4206a1c BIND placeholder added to reuseable buffer 2019-02-06 10:43:20 +01:00
Bertrand Songis ea76998beb More AVR removal 2018-08-05 12:39:05 +02:00
Bertrand Songis f3bfde242b RTOS refactoring + more AVR removal 2018-08-05 12:06:48 +02:00
Bertrand Songis d2697345e1 VIRTUAL_INPUTS #define removed 2018-07-11 18:54:05 +02:00
Bertrand Songis db1d3fcb32 Remaining CPUARM removed 2018-07-11 13:33:51 +02:00
Arne Schwabe c80f0da4ac Remove various references of AVR from script and referenced files 2018-07-05 12:05:55 +02:00
3djc dd632969f3 Massive clean thanks to Schwabe : unifdef -m -DCPUARM -UCPUM64 -UCPUM2560 -UPCBSTD -UPCBMEGA2560 -UPCBGRUVIN9X -UPCB9X $(find . -name "*.cpp" -or -name "*.h") 2018-07-05 08:04:55 +02:00
Kilrah 091bf2fdf0 Hide hidden files 2018-06-17 22:07:33 +02:00
3djcandBertrand Songis 13c5387dc9 Disable pulse while model notes are displayed (#5758)
* Implement model note view without menu handler. Use it before pulse starts

* Also at model change. Handle wd reset and start pulses after mixer

* Fix Horus compile

* Fix Horus crash

* Fix coding style issue
2018-06-09 11:34:56 +02:00
Bertrand SongisandGitHub db276cecbf S.PORT flash on all available interfaces (possibly 3) 2018-05-10 08:22:39 +02:00
Bertrand SongisandGitHub 99604dccc9 XLite support (#5806) 2018-04-25 23:07:04 +02:00
3djcandBertrand Songis 656daa75fa Fix SDcard size and format issue (#5004)
* - fix overflow in SDcard size computation
- fix format function
- implement more informative format error handling

* Move to a function
2017-06-14 23:33:31 +02:00
Arne SchwabeandBertrand Songis d609d37798 Ignore UNIX dotfiles (#4973)
* Ignore UNIX dotfiles

This has the advantage of hiding all the stupid .DS_STORE and ._foo.lua attributes files from Mac OS X

* Do not ignore ..
2017-06-02 16:37:35 +02:00
3djcandBertrand Songis bed9f56b9d Fix non overlapping text (#4691) 2017-03-26 20:04:49 +02:00
Bertrand SongisandAndre Bernet 76f5d029a0 Warning when Multiply used on first mix of a channel, fix #4525 (#4647)
* Proposal to fix #4525

* Clearer text

* Companion side

* Translation not needed
2017-03-22 11:39:09 +01:00
3djcandBertrand Songis 80b44444ec Fix lcdLastPos (#4487)
* Fix lcdLastPos
Introduce lcdLeftPos

* Cosmetics

* Cosmetics

* Non ARM code cleanup

* Move telem screen to midsize

* Fine tune

* Renaming
2017-03-04 10:16:45 +01:00
Damjan AdamicandBertrand Songis 7081f924de Some memory leaks and out of bounds array access fixed (#4498) 2017-02-26 12:39:26 +01:00
Max PapernoandBertrand Songis 7762bac360 [firmware][gui] Extended limits fixes, issue #4447 (#4453)
* [firmware][gui] Adjust custom failsafe (and some channel display) ranges for proper extended limits (fixes #4447).  This also fixes some display issues in *x64 GUIs when adjusting failsafe settings and cleans up code in those functions.

* [firmware][gui] Fix 480x272 channel output progress bars to show full extended limits; Fix alignment issues on all 212x & 480x gui mixes screens with custom channel names; Streamline some channel outputs display code.

* Fix AVR build.
2017-02-15 16:25:40 +01:00
3djcandBertrand Songis aa19475c90 3djc/x7 mixer screen rework (#4281)
* Optimise display on 128x64

* Name if present are displayed (like now), but when the row is selected, the name moves on top and the display alternates between FM and other info

* Compile fix
2017-01-24 18:25:38 +01:00
Andre BernetandBertrand Songis bf15410bf1 3djc/x7 outputs (#4273)
[128x64] Rework Outputs screen
[X7] Fix for min/max limits bug
[X7/X9] UI fixes
2017-01-24 07:36:40 +01:00
Damjan AdamicandBertrand Songis 82dce3ee60 Projectkk2glider/flash savings (#4199)
* Flash savings: getFileExtension() de-templated, saves 160 bytes

* Flash savings: several variables moved to rodata, RGB macro optimization (speed and can now be used to initialize rodata)

Result for Horus:
   text	   data	    bss	    dec
1261182	 808603	  42020	2111805   before
1267149	 803335	  42124	2112608   after (data size also counts .sram section)

5kB saved in .data section (RAM and FLASH)

* Removed compiler warnings

* RGB() and ARGB() gtests added

* ARGB() optimized
2017-01-05 21:44:59 +01:00
Bertrand Songis 226877ec1e [X7] SD Manager fix (when coming from Text view) - #4143 2016-12-19 23:58:25 +01:00
Bertrand Songis 7343ad0de5 Warnings removed 2016-12-19 23:20:11 +01:00
Andre Bernet 1d42d329cf Text view scroll for X9E 2016-12-19 22:37:30 +01:00
Andre Bernet 2b56ea70df [128x64] UI fixes, French translations 2016-12-19 21:26:12 +01:00
Bertrand Songis 880216c544 [X7] Text view fix - #4143 2016-12-19 17:51:22 +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
3djcandBertrand Songis 35e199b579 Prep for Nightly (#4089)
* Prep for Nightly

* Compile fix

* Much nicer :)

* One more

* Fix

* Last one

* Cosmetics
2016-12-03 09:36:51 +01:00
Bertrand Songis 862ff2f80d Compilation fix 2016-12-02 22:22:08 +01:00
Bertrand Songis 705823a9a6 [X7D] UI fixes 2016-12-02 18:37:53 +01:00