Jesper Frickmann and GitHub
f1baa383ae
Fix standalone Lua script screen flicker and improve error messages ( #982 )
...
* Relax assumptions about when Lua is called in foreground and background
* Start Lua cycle timer both in foreground and background
Do not assume that background/foreground alternates
* Lua is called at every Standalone GUI cycle instead of 5 Hz
Since Lua preempts every 50 ms or so, the GUI should remain responsive.
* In standalone script, only call Lua once per GUI cycle, to avoid messing up buffer handling.
* Revamped error reporting for Standalone and Telemetry Lua scripts
* Font size for Lua error is reduced from XL to L on color if LCD_W < LCD_H
* In drawTextLines, also possible linebreaks for opening brackets.
* Smaller font for error message on tall color screen
* Make titlebar height match font size on narrow LCD
2021-11-15 12:57:14 +11:00
Jesper Frickmann and GitHub
ecf386e71f
Fix certain Lua script errors hanging the GUI ( #899 )
...
* Fixed a bug where a standalone Lua script w/o a run function will hang the GUI on non-color radios
* Prevent Lua standalone window from opening if Lua failed on load
* Fixed scroll down key in TX12 simulator
Copied key definitions from TX16S
* Fixed the Lua error trying to call nil value when no scripts are loaded.
* I messed up in the previous commit; now it does not freeze and it does not call nil.
2021-10-15 12:03:23 +11:00
rotorman and Risto
fc2142ec78
Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it).
2021-10-02 14:22:01 +02:00
Riwan
c1d8ae531a
moving include api_filesystem
2021-08-24 10:24:47 +02:00
Riwan
ec1c1ec345
Added LUA file system operations
2021-08-23 14:39:49 +02:00
jfrickmann
8e4e2cceea
Fix for issue #537
...
The function luaResume(...) assumes that it is called alternatingly in the background and the foreground.
But on color LCD radios it is only called in the foreground by standalone and tools script, so it got stuck waiting for a foreground call.
2021-08-03 20:57:16 -04:00
jfrickmann
5671838864
Cleaned up code for Mixer/Custom/Model scripts and added compiler directives
2021-07-22 15:11:12 -04:00
jfrickmann
dcac3cb9da
Fixed Lua error messages in standalone and telemetry scripts - again. There is still a problem that the call to POPUP_WARNING in displayLuaError does not return and the gui goes dark on colorlcd. Could it be long jump?
2021-07-22 14:56:23 -04:00
jfrickmann
c76532f33a
Fixed Lua error messages in standalone and telemetry scripts. TODO: If a standalone script errors in init() on COLORLCD it just quits without showing error. Is that because it calls luaError from luaExec() in radio_tools.cpp instead of from luaTask() in standalone_lua.cpp?
2021-07-22 14:51:44 -04:00
jfrickmann
c62aac7bde
Lua task preempts long running scripts instead of killing them
...
Ported to EdgeTX from https://github.com/opentx/opentx/pull/8194
2021-07-22 14:41:53 -04:00
Raphael Coeffic and Raphael Coeffic
6d490bddf0
Sensors don't use ZCHAR in 2.4
...
Resolves #97
2021-06-02 11:19:11 +02:00
olliw42 and GitHub
25cce2611c
avoid compiler warning ( #139 )
2021-06-02 07:12:09 +02:00
Raphael Coeffic
5030939e4e
Added support for LUA pop-up functions
2021-05-30 18:25:35 +02:00
Raphael Coeffic
54a7ef68e0
Fixed starting scripts from "Tools" page
2021-05-30 08:10:02 +02:00
Raphael Coeffic and Raphael Coeffic
6b9abe0670
Remove obsoleted code
2021-05-24 16:23:06 +02:00
Raphael Coeffic and Raphael Coeffic
3ba55ac34e
Fixed non-color lcd cmake
...
No widgets necessary for B/W.
2021-05-06 12:55:59 +02:00
Raphael Coeffic and Raphael Coeffic
72a7409d10
First working LUA widget: Timer2
2021-05-06 12:55:59 +02:00
Raphael Coeffic and Raphael Coeffic
3a45cbe8e7
Cleanup & fixes
2021-05-06 12:55:59 +02:00
Raphael Coeffic and Raphael Coeffic
1fa99fdeb2
Glider wizard running in simu
...
Text fields are still displayed as a black box (needs to be fixed)
2021-05-06 12:55:59 +02:00
Raphael Coeffic
f76ef9312b
Fixed includes for BW radios
2021-04-18 07:57:42 +02:00
Raphael Coeffic
ef6f2d0c57
Scrolling from view to view works now
...
And quite some bugs & crashes fixed.
2021-04-18 07:57:42 +02:00
3djc
efa8f5520b
Merge fixes
2021-04-08 14:20:25 +02:00
3djc
70d24506da
Merge branch '2.3' into 2.4
...
# Conflicts:
# radio/src/fonts/480x272/font_dblsize.png
# radio/src/fonts/480x272/font_xxlsize.png
# radio/src/gui/128x64/model_setup.cpp
# radio/src/gui/128x64/radio_setup.cpp
# radio/src/gui/480x272/model_receiver_options.cpp
# radio/src/gui/480x272/model_setup.cpp
# radio/src/gui/480x272/radio_calibration.cpp
# radio/src/gui/480x272/radio_hardware.cpp
# radio/src/gui/common/stdlcd/draw_functions.cpp
# radio/src/gui/gui_common.cpp
# radio/src/keys.h
# radio/src/lua/interface.cpp
# radio/src/pulses/afhds3.h
# radio/src/rtos.h
# radio/src/switches.cpp
# radio/src/targets/common/arm/stm32/aux_serial_driver.cpp
# radio/src/targets/horus/CMakeLists.txt
# radio/src/targets/horus/lcd_driver.cpp
# radio/src/targets/horus/startup_stm32f42_43xxx.s
# radio/src/targets/taranis/CMakeLists.txt
# radio/src/telemetry/crossfire.h
# radio/src/telemetry/multi.cpp
# radio/src/translations.cpp
# radio/src/translations/it.h.txt
# radio/src/translations/untranslated.h
# radio/util/font2png.py
# tools/commit-tests.sh
2021-04-08 11:42:28 +02:00
Daniel
fa8f52281c
Improve script errors output for small lcds
2020-12-22 08:37:14 +01:00
Bertrand Songis
6878ae4a9f
Merge with latest 2.3
2020-03-05 10:43:01 +01:00
3djc and GitHub
7f5276224e
Fix LUA telemetry (+/-/exit handling) ( #7356 )
...
Fix LUA telemetry (+/-/exit handling)
2020-02-07 09:54:35 +01:00
Bertrand Songis
071116afeb
Merge with latest 2.3
2019-11-07 15:04:45 +01:00
Bertrand Songis
e2f84b8047
Cosmetics
2019-10-19 13:03:08 +02:00
Bertrand Songis
3581dce96b
Update to latest FatFS version
2019-10-02 17:53:22 +02:00
Bertrand Songis
3e2cb83991
Now uses the external libopenui
2019-10-02 14:41:52 +02:00
3djc and Bertrand Songis
c60d3858d2
Allow longer toolsname on wide screens ( #6805 )
2019-09-18 17:55:51 +02:00
Bertrand Songis and GitHub
0aaf2a39f1
Raphaelcoeffic/fix 6716 ( #6753 )
...
fixed file descriptor leaks in radio tools
2019-09-12 10:02:15 +02:00
Raphael Coeffic and Bertrand Songis
bb1c2b072b
fixed file descriptor leaks in radio tools ( #6748 )
2019-09-12 10:01:49 +02:00
Bertrand Songis
6684a75d92
Fixes #6029
2019-09-10 14:59:33 +02:00
Bertrand Songis
d983138f77
Cosmetics
2019-09-10 14:53:02 +02:00
Bertrand Songis
e7736f3fdc
Replace NULL by nullptr
2019-08-28 10:28:11 +02:00
Bertrand Songis
ffb731dc30
[X10 Express] Spectrum analyser, first version
2019-08-19 16:21:55 +02:00
Bertrand Songis
a3cc0ee830
Lua warning popups could not be canceled!
2019-06-07 11:30:50 +02:00
3djc and Andre Bernet
cd3c4ac654
Add Jumper t12 support by 3djc ( #6451 )
...
* Jumper T12 - companion part
* more work
* Add definitions
* fix libsimulator key handling
* Fix simu keys handling
* Cosmetics
* Continued
* Fix wrong regplace
* Fix wrong regplace
* Please travis
* Please travis
* Add T12 to Travis
Switch naming and display
* Cosmetics
* Work on modules
* Work on modules
* typo
* Fix navigation
* Cosmetics
* Introduce NAVIGATION_type
* Fix
* Make NAVIGATION_type more future proof
* Lots of cleanups and improvements
* Cosmetics
* Fix internal module menu
* Cosmetics
* Fix screen reversed
* Small fixes
* Fix navigation issue
* Please travis
* Fix LCD contrast
* Fix T12 switch layout
* Fix T12 keys screen and all radios keys translations
* Complete rework of SWITCHES screen for all radios
* comsetics
* VC++ compilation
2019-05-26 19:51:17 +02:00
Bertrand Songis
c7bd0d3ea1
Compilation fixes
2019-04-16 20:39:50 +02:00
Bertrand Songis
a260a0eb4f
The script for SBEC now searches for a SBEC sensor
2019-04-01 18:51:33 +02:00
Bertrand Songis
07840007de
Compilation fixes
2019-03-21 20:03:25 +01:00
Bertrand Songis
2388b90a90
XLITE-S support
2018-11-03 16:56:51 +01:00
Bertrand Songis
131078e3a0
GCC new warnings fixed (GCC) 8.1.1 20180531
2018-08-03 23:02:43 +02:00
Kilrah
b50826bc74
Do not load global function scripts if global functions are disabled in model settings ( fix #6029 )
2018-07-14 13:21:24 +02:00
Bertrand Songis and GitHub
99604dccc9
XLite support ( #5806 )
2018-04-25 23:07:04 +02:00
Max Paperno and Bertrand Songis
ba1073ace6
[Lua] Allow global functions to play scripts. ( #5440 )
2017-11-30 19:10:11 +01:00
Damjan Adamic and Bertrand Songis
f0f3e35bf6
Lua memory (de)allocation tracer: ( #5191 )
...
* Lua memory (de)allocation tracer:
Usage:
* turn on: `cmake -DLUA=YES -DLUA_ALLOCATOR_TRACER=YES -DDEBUG=YES -DNANO=NO`
* get debug output and make plot data: `./simu 2>&1 | grep "^LT" | ../radio/util/lua_trace2plot.py > data.plot`
* plot: `gnuplot -e 'set xtics rotate; plot "data.plot" using 2:xtic(1) ; pause mouse close'`
* Changes based on Bertrand comments
2017-11-11 09:41:05 +01:00
Damjan Adamic and Andre Bernet
955d5775cb
Add Lua getUsage() function that returns percent of already used up i… ( #5313 )
...
* Add Lua getUsage() function that returns percent of already used up instructions in current script execution cycle. It can be used to avoid script being killed when doing long lasting tasks (like telemetry logs loading and parsing)
* Compilation fixes
* Doc fix
* Disable Lua script instructions limit in DEBUG mode
2017-11-10 17:23:37 +01:00
3djc
39a631d31d
Dramaticaly reduce spam on companion/simu 'debug' output
2017-04-12 10:07:47 +02:00