Commit Graph
53 Commits
Author SHA1 Message Date
Bertrand SongisandGitHub dbaa4058df Wismy/ota (#7964)
Add "Flash FC by OTA"
2020-09-25 12:54:09 +02:00
3djcandGitHub 414fba167d Do not try to flash frsky updates on non frsky internal modules (#7890) 2020-08-28 15:58:18 +02:00
Kilrah 03cb6ede3c Flashing frsk for receiver or sensor via module pins was missing on colorlcd radios without sport connector 2020-08-08 11:58:29 +02:00
3djcandGitHub ab8913052c Colorlcd popup improve (#7740)
Popups improvement
2020-06-15 11:11:57 +02:00
Bertrand Songis 6d116298c8 Cosmetics 2020-06-08 17:53:39 +02:00
Bertrand Songis 48c227d5f5 Add a title to the popups on Horus 2020-06-08 15:11:34 +02:00
Bertrand Songis ec9de757b8 Fixes #7694 2020-06-08 14:40:53 +02:00
Bertrand Songis 57198209aa Fixes for OTA on Horus 2020-04-10 20:54:21 +02:00
Bertrand SongisandGitHub 3bff803238 OTA Update back on Horus (#7477) 2020-04-01 08:14:32 +02:00
Bertrand Songis 771c6ea3bd Rollback OTA on Horus as it freezes the radio when entering the SD Manager 2020-03-28 09:34:42 +01:00
WismyYaoandGitHub 629f98a930 Wismy/frsky new receivers (#7449)
Add internal module OTA
Change virtual keys for X-Lite(S) Lua scripts
2020-03-24 15:15:10 +01:00
Bertrand Songis c2e5e4f566 No "Execute" function if LUA not defined on Horus 2020-02-17 15:01:39 +01:00
Bertrand SongisandGitHub 4098b84fe5 Bsongis/sd manager pause resume (#7172)
* Push the event EVT_ENTRY to force the current screen refresh when USB unplugged

* Test fix

* Compilation fix
2019-12-09 15:24:05 +01:00
3djc 01b3608126 Fix 480 SD manager .bin file handling
This fixes #7111
2019-11-23 17:46:28 +01:00
Bertrand SongisandGitHub 4cdd17f0d7 MAGIC value for powerReason should be stored in RTC backup on Horus (#7096)
- Allows the radio main application to start correctly when coming from an app in RAM
- Refactoring of the `UNEXPECTED_SHUTDOWN()` process
- Saves the RTC battery as BACKUP RAM is not needed on normal shutdown
- On PWR OFF on an ALERT, the radio won't show the next alert before shutting down
- Bootloader flashable through the SD Manager
2019-11-21 11:50:33 +01:00
Bertrand Songis fecbfc74a1 There is a PMU chip on X10 Exprress. SD Manager dynamic menu updated. 2019-11-07 09:27:39 +01:00
3djc cf184951eb Compile fix 2019-10-11 10:55:20 +02:00
Bertrand SongisandGitHub 135133423a Bsongis/issue 6910 x10 express bluetooth (#6931)
[X10 Express] Bluetooth function added
2019-10-11 08:09:59 +02:00
3djc 2fd12eb75e Fix 2019-09-26 12:26:05 +02:00
Raphael CoefficandRaphael Coeffic 6b12010473 Add T16 support
Added support for:
- T16 radio
- internal multi-protocol module.
- flashing internal and external multi-protocol modules.

Many thx to:
- goebish, for the hardware support.
- qba667, for the original patches for the internal multi-protocol support (UI and serial com).
2019-09-24 22:12:13 +02:00
Raphael CoefficandBertrand Songis 4fea9d8f23 Raphaelcoeffic/fix sd manager (#6783)
* do not invalidate filenames buffer on EVT_REFRESH

otherwise the filenames are reset to the end of list, whereby the indexes stay the same on [LONG ENTER] (pop-up menu).

* fix vertical offset when leaving text viewer
2019-09-16 08:00:10 +02:00
Bertrand Songis 465674ca68 Fixes #6721 - Tests needed 2019-09-10 14:38:39 +02:00
Bertrand SongisandGitHub 6c530c6f7b External antenna configuration: proposal for #4285 (#6656)
External antenna configuration
2019-09-06 11:26:18 +02:00
Bertrand Songis 9454da5460 [Horus] Choosing a model bitmap was broken 2019-08-22 11:41:24 +02:00
Kilrah a8562fe06f Fix text display menu and allow viewing script contents (fix #1483) 2019-08-18 19:23:18 +02:00
Bertrand Songis 353c59b0e0 [X10 Express] Radio / Tools started 2019-08-16 11:03:48 +02:00
Bertrand SongisandGitHub 8edf77286d Bsongis/power control chip (#6445)
FRSK files support added
2019-05-27 12:23:34 +02:00
Bertrand Songis 6e8b64cea4 Rework BIND to share code with OTA update 2019-04-24 16:03:28 +02:00
Bertrand Songis 04ba9e5c68 Compilation fixes 2019-03-20 16:32:58 +01:00
Bertrand Songis 5fc4d86ef5 Compilation fixes 2019-03-19 18:29:32 +01:00
Bertrand Songis f3bfde242b RTOS refactoring + more AVR removal 2018-08-05 12:06:48 +02:00
Kilrah 091bf2fdf0 Hide hidden files 2018-06-17 22:07:33 +02:00
Raphael CoefficandBertrand Songis 7379f6064e Horus: add receiver number check (#5841)
* add receiver number check for Horus

* find the first free model ID on LONG ENTER

* use the next free model ID for new models

* improve free model ID support for std LCD as well

* fixed “duplicate model”

* fixed ModelsList::isModelIdUnique()
2018-05-21 19:03:51 +02:00
Bertrand SongisandGitHub db276cecbf S.PORT flash on all available interfaces (possibly 3) 2018-05-10 08:22:39 +02:00
Raphael CoefficandBertrand Songis 716a91fc0c allow splash image to be loaded from SD on Horus (#5463)
* allow splash image to be loaded from SD on Horus

* added a new menu entry to assign splash screen
2017-12-19 12:15:03 +01: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
Damjan AdamicandBertrand Songis 7081f924de Some memory leaks and out of bounds array access fixed (#4498) 2017-02-26 12:39:26 +01:00
Bertrand SongisandAndre Bernet b9bb831b7f Bsongis/horus flash external device (#4446)
* CMake options changed to UNEXPECTED_SHUTDOWN=YES/NO and  PWR_BUTTON=PRESS/SWITCH

* [X12S / X10] Flash an external device is now OK
2017-02-12 21:04:46 +01:00
Bertrand SongisandGitHub b0eeeb4dbc Fixes #4315 (#4406) 2017-02-05 22:01:44 +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
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
Damjan Adamic 258b8adfb9 Fixes #3912: Deleting file in SD manager updates the list wrongly (Horus) 2016-10-31 11:07:44 +01:00
Damjan AdamicandBertrand Songis 4513cf89f2 Projectkk2glider/fatfs 0.12 (#3925)
* Re #3815: Disk cache: Write statistic added. Bigger disk cache. Show disk cache misses in CLI.

* Update to the latest FatFS R0.12b (all existing OpenTX patches have been already applied in upstream, only few ff.h modifications needed for simulator)

* Missing file

* SD card manager: do not show parent dir [..] for root directory
2016-10-18 18:14:17 +02:00
Bertrand Songis 85273d07c1 #3817 fixes 2016-10-12 18:12:12 +02:00
Andre BernetandBertrand Songis ed2a232bda Allow selecting a model image from the SD manager (#3817) 2016-10-12 17:42:34 +02:00
Damjan Adamic e229c8f8e7 Log file moved to RAM and aligned for proper DMA access. Log functions renamed. 2016-09-11 21:37:54 +02:00
Bertrand Songis cc2c2b094e [Horus] S.PORT devices update should work (not tested)
[Horus] SD Manager files renaming fixed (quick & dirty, I would prefer a popup)
2016-09-05 19:33:06 +02:00
Bertrand Songis 5b9bd52737 [Horus] Warnings removed 2016-08-29 13:51:09 +02:00
Andre Bernet 30eb2baed9 [Horus] Bitmaps now scaled to fit both dimensions and centered in desired zone 2016-08-28 11:28:29 +02:00