Commit Graph
739 Commits
Author SHA1 Message Date
Peter FeerickandRaphael Coeffic edbec9f35e Updated getVersion luadoc and example output
Finished updated lua docs for getVersion() api change,
verified functionality and grabbed simulator output,
removed magic string and used a define instead.
2021-06-26 06:36:35 +02:00
PeterandRaphael Coeffic 74222fe74d Lua scripts can detect EdgeTX via getVersion
Add a sixth parameter to getVersion so that scripts 
can detect whether running on EdgeTX or OpenTX. 

i.e. `local ver, radio, maj, minor, rev, osname = getVersion()`
2021-06-26 06:36:35 +02:00
richardclliandGitHub 2f54a629a2 Merge pull request #289 from EdgeTX/2.4
Merge from 2.4 bug fixes
2021-06-21 15:45:44 +08:00
Raphael Coeffic 9ecccef315 Call LuaWidget background() if widget is not painted
Resolves #222
2021-06-19 17:47:47 +02:00
Raphael Coeffic d10563d08b Fixed more zchar / string copy errors
Resolves #224
2021-06-16 18:00:42 +02:00
Raphael Coeffic 60517df349 Removed necessity for lcd allowance in lcd.setColor() and lcd.getColor() 2021-06-15 16:24:54 +02:00
Raphael Coeffic b8511a2b22 Fix lcd.RGB()
It does not require access to lcd, so let's not check that.
2021-06-15 16:19:43 +02:00
yaapu 1f62bab4f1 colorlcd: lua fix INVERS+RIGHT in drawText, drawNumber 2021-06-14 08:07:31 +00:00
yaapu 29966c53ff colorlcd: fix for BOLD font h/v offsets, fix for lcd.clear() 2021-06-12 22:05:07 +00:00
yaapu e5bb4d3fb7 colorlcd: fix for drawNumber INVERS and text vertical and horizontal offsets 2021-06-12 10:25:57 +00:00
Raphael Coeffic 78915daf95 Fixed memory leak: widget factories need to be deleted
in opentxClose()
2021-06-12 07:38:31 +02:00
Raphael Coeffic c37bc91475 Unregister LUA widgets when the factory is destoyed
Resolves #183
2021-06-12 07:38:30 +02:00
Richard Li cc92f25046 Fixed NV14 build, added flysky build script and target in build-gh.sh 2021-06-09 16:10:45 +08:00
Raphael Coeffic 247ac2a524 Fixes 2021-06-09 09:30:18 +02:00
Raphael Coeffic b0fb80b264 ZChar nightmare / take 2 2021-06-09 09:24:48 +02:00
olliw42andRaphael Coeffic d5d3bf5aa9 Add some new LUA graphics plotting functions 2021-06-05 22:29:15 +02:00
yaapuandRaphael Coeffic 714a9a3bea color_lcd: fixed lcd.drawGauge() 2021-06-05 20:29:54 +02:00
yaapuandRaphael Coeffic e9b699f6e2 color_lcd: fixed lcd.clear() 2021-06-05 20:29:54 +02:00
Raphael Coeffic 493b9aaedc Fixes issue with model LUA API strings 2021-06-04 20:43:02 +02:00
Raphael CoefficandRaphael Coeffic 6d490bddf0 Sensors don't use ZCHAR in 2.4
Resolves #97
2021-06-02 11:19:11 +02:00
olliw42andGitHub 25cce2611c avoid compiler warning (#139) 2021-06-02 07:12:09 +02:00
Raphael Coeffic 267375cda8 Fix copy-paste error in luaLcdDrawNumber()
Resolves #127
2021-05-30 19:10:28 +02:00
Raphael Coeffic 5030939e4e Added support for LUA pop-up functions 2021-05-30 18:25:35 +02:00
Raphael Coeffic 703bb6c20e Fixed several disabled LUA lcd methods 2021-05-30 11:15:21 +02:00
Raphael Coeffic 54a7ef68e0 Fixed starting scripts from "Tools" page 2021-05-30 08:10:02 +02:00
Raphael CoefficandRaphael Coeffic 6b9abe0670 Remove obsoleted code 2021-05-24 16:23:06 +02:00
Raphael Coeffic 2f5b522413 Merge branch '2.3' into 2.4 2021-05-16 12:55:21 +02:00
Lucas1188 c8bd18441a Update api_general.cpp 2021-05-10 21:46:15 -06:00
Raphael CoefficandRaphael Coeffic f305fd397d Selectable widgets (+edit, fullscreen mode, etc) 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic f0f6a1e093 Fixed various issues while running "teckel12/LuaTelemetry" widget 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 3ba55ac34e Fixed non-color lcd cmake
No widgets necessary for B/W.
2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 72a7409d10 First working LUA widget: Timer2 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 3a45cbe8e7 Cleanup & fixes 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 4656921dea New the BLINK fields do blink 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 9bcd15e49d Finished moving color table and added INVERS 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 897d8535e7 Added missing api_colorlcd.h 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic 7b26fe708b More fixes 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael Coeffic f1be9157ae Move away from color table for low level ops 2021-05-06 12:55:59 +02:00
Raphael CoefficandRaphael 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 CoefficandRaphael Coeffic fcf9683f2d NAVIGATION_HORUS does not exist anymore
Use COLORLCD instead.
2021-05-06 12:55:59 +02:00
c06b789f5c Multi module config support (#8438)
* Multi module configuration

Co-authored-by: Pascal Langer <pascal_langer@yahoo.fr>
2021-05-05 15:46:29 +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
Raphael Coeffic 2f5dd1d4e3 modelDefault() becomes setModelDefaults() 2021-04-09 15:10:11 +02:00
Raphael Coeffic 3464d0d109 clearInputs() has been moved out of defaultInputs()
But we should keep a consistent behaviour in the LUA API.
2021-04-09 08:09:50 +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
Bertrand Songis 5d131093ef Merge with latest 2.3 2021-04-06 09:40:48 +02:00
3djcandGitHub b60ba23f1f M-Link telemetry (#8281) 2021-03-10 19:13:36 +01:00
3djc 24fdbcbbab Send 0 with getRSSI when no telem 2021-02-15 13:10:29 +01:00