Raphael Coeffic and Raphael Coeffic
4c8bb99e73
Replaced focus handling with LVGL groups
2022-06-11 15:38:08 +02:00
Wilhelm and GitHub
c14417a325
Try to fix use of unterminated strings in mixer setup ( #1317 ) ( #1338 )
...
* fixes the non-terminated fixed-string problem in lua-mixer-script
added some useful info to the script-line
make the popup menu to delete a script
* removed unneccessary comments
* intermediate fix
* tried to obey all comments to the code
and to eliminate further potential buffer-overflows
* fixed typo
* fixed async loading of lua scripts and update of widget
cleanup
* removed GCC pragmas (clang warn about them)
remove constexpr qualification (gcc accepts them because gcc-builtins are already constexpr, clang still warns about them)
* removed merge marker
2022-03-23 12:40:06 +01:00
Hans Christian Olaussen and GitHub
279c308da4
fix: lua error message not always shown ( #1604 )
2022-02-26 19:18:35 +10:00
5a4c6df594
fix: OSK DEF button was not setting Value inputs of mixer scripts correctly ( #1536 )
...
* The set/reset switches for a logical switch are only processed if the are valid.
* Revert "The set/reset switches for a logical switch are only processed if the are valid."
This reverts commit c238108415aec39f64ba6bae4c86cfb3ea4713bc.
* fix handling of default values in mixer scripts
* revised the use of default value to be consistent to the past usage
* Limited autoformatting
Co-authored-by: Peter Feerick <peter.feerick@gmail.com >
2022-02-04 21:53:14 +10:00
Jesper Frickmann and GitHub
d37b3e4051
[lua] Fix Lua Mixer index issue ( #1312 )
...
* Bug with the index of Mixer script input/output data
* Missed a #if defined(COLORLCD)
2021-12-30 19:37:23 +10:00
jfrickmann and Peter Feerick
a9c5365ccb
Truncate Mixer Lua script input and output names to 6 chars
2021-12-13 14:51:47 +10:00
jfrickmann
ce7b408445
Add touch to Standalone Lua scripts
2021-11-19 08:01:28 -05:00
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