1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00
Commit graph

103 commits

Author SHA1 Message Date
Damjan Adamic
8aeb35c912 Refactoring continued: Try to run lua scripts before the first LCD function 2014-12-06 15:36:10 +01:00
Damjan Adamic
ede1f7ff6f Fixed bmpLoad():
* added gtests
 * fixed various memory leaks
 * fixed wrong display of images with width < 8
 * fixed wrong display of images with odd width and/or height
2014-11-16 19:56:04 +01:00
Damjan Adamic
3449118e07 Enabled more complier warnings and removed one for Taranis. Other targets still have some warnings. 2014-11-16 19:51:49 +01:00
bsongis
88d9691d16 Telemetry refactoring - Fixes #1634 2014-11-08 12:06:42 +01:00
Bertrand Songis
7d8ca6931b Merge pull request #1804 from opentx/projectkk2glider/bin_allocator_issue_1791
Fixes #1791: Port Lua Bin Allocator to next:
2014-11-08 11:27:41 +01:00
Damjan Adamic
22c7ec6a39 Fixes #1818: added Lua model.resetTimer() function 2014-11-02 09:31:31 +01:00
bsongis
884d762de8 Fixes #1805 2014-10-26 16:00:53 +01:00
Damjan Adamic
c89381bae5 Fixes #1791: Port Lua Bin Allocator to next:
* Bin Allocator
* Lua memory allocaton fixes
* Simulator memory leak fixes
2014-10-26 09:14:45 +01:00
bsongis
1066176b0f Fixes #1796 - needs tests on the nightly builds. Caution I removed the
lcd.lock() function completely
2014-10-22 20:39:19 +02:00
bsongis
a26c83bd30 Fixes #1785 2014-10-12 19:42:58 +02:00
Damjan Adamic
f8e6fd7b2d Fixes #1755 (on next branch): LUA get/setTimer(): inconsistent timer struct 2014-10-05 14:54:29 +02:00
bsongis
f71cf21a02 Warning removed 2014-09-27 22:08:27 +02:00
Damjan Adamic
80eb34cea2 Fixes #1714: getting radio setting of imperial or metric in lua 2014-09-20 11:33:48 +02:00
Damjan Adamic
7497be4d28 Fixes #1649: added getDateTime() in lua which returns current date and time 2014-09-20 11:23:33 +02:00
bsongis
2f8b9347a4 Global functions (only Firmware) - saves 20bytes flash on 9X stock 2014-09-18 11:44:09 +02:00
bsongis
93d2837dee #1647 - bitmap set/get added to the Lua interpreter 2014-09-15 18:50:11 +02:00
bsongis
829567a2c1 #1647 - getCurve exported to the Lua interpreter 2014-09-15 18:49:58 +02:00
bsongis
74252f787b Fixes #1633 2014-09-15 15:47:46 +02:00
bsongis
a7831d68db This luaFree is not needed and could do a mess in RAM 2014-09-15 10:17:38 +02:00
bsongis
ea122610ef LTR patch (modified) applied. Saves around 8-10k RAM during the
interpreter initialization
Conflicts:
	radio/src/Makefile
	radio/src/lua.cpp
	radio/src/lua/src/linit.c
2014-09-15 10:12:57 +02:00
bsongis
fff69c74f4 Tests added to avoid doing anything in the Lua interpreter after a Lua
Panic
2014-09-15 10:07:24 +02:00
bsongis
871e9f0be3 Revert some last changes so that there is no problem with Lua
Conflicts:
	radio/src/Makefile
	radio/src/opentx.cpp
2014-09-15 10:05:55 +02:00
bsongis
f584766fc7 The Lua Wizard was broken in 2.0.11 2014-09-10 15:35:53 +02:00
bsongis
500602e8cc Fixes #1643 - Thanks to projectkk2glider for his help on this one
Conflicts:
	radio/src/lua.cpp
	radio/src/opentx.cpp
2014-09-05 17:54:12 +02:00
bsongis
3e1825aa54 Fixes #1651
Conflicts:
	radio/src/lua.cpp
2014-08-28 21:56:06 +02:00
bsongis
c107a1bc8e Fixes #1650 2014-08-28 21:03:15 +02:00
Damjan Adamic
3152ac1121 Fixes #1532: added Lua playTone() 2014-08-09 20:24:21 +02:00
Damjan Adamic
e13f2913df Fixes #1540: added Lua playDuration() 2014-08-09 18:04:48 +02:00
Damjan Adamic
07728782c8 Fixes #1538: Lua playFile(): current language sound path added to the file name in case of a relative path 2014-08-09 17:37:04 +02:00
bsongis
45abfb872f Fixes #1486 2014-07-21 22:25:55 +02:00
Damjan Adamic
2a5364dc8c Re #1480: wrong field.id for multiple fields 2014-07-21 11:51:30 +02:00
bsongis
484566083e A little refactoring to avoid all the sprintf and too many string
comparaisons. Completely untested
2014-07-18 22:13:02 +02:00
Damjan Adamic
0a9dcc5ce6 Re #1480: added TELEM_MAX_ASPEED conversion in luaGetValueAndPush() 2014-07-18 10:41:16 +02:00
Damjan Adamic
2f01f139cc Re #1480: Cosmetics 2014-07-18 09:07:36 +02:00
Damjan Adamic
fb3e615008 Fixes #1480: How to handle the increasing number of Lua constants 2014-07-18 08:59:38 +02:00
bsongis
1be75735be Fixes #1476 2014-07-09 09:53:04 +02:00
bsongis
6b49119af7 getValue(...) Lua identifiers more consistent 2014-07-08 08:04:05 +02:00
bsongis
59eb020eb1 getGeneralSettings(), lcd.getLastPos() and lcd.drawGauge() added 2014-07-01 18:06:37 +02:00
bsongis
1d1a815ef7 lcd.drawChannel(...) added. Possibility to write telemetry values using
different sizes
2014-07-01 17:36:39 +02:00
bsongis
74dfd64e29 The background function is not anymore mandatory in Telemetry scripts 2014-07-01 14:45:39 +02:00
bsongis
09842fe531 Telemetry "voltages" and "after flight" screens may be overriden by
telempw.lua and telemaf.lua
2014-07-01 12:10:17 +02:00
Damjan Adamic
b0869fccfc Re #1358 - defined PREC2 in Lua 2014-06-29 14:29:22 +02:00
Damjan Adamic
17ab12f7bf Added missing eeDirty(EE_MODEL) 2014-06-29 14:26:39 +02:00
Damjan Adamic
816f9ce8a0 Fixes #1388 -New Lua functions: model.getInfo() and model.setInfo() 2014-06-29 13:54:50 +02:00
Andre Bernet
54902a5a00 Lua telemetry screens had been shifted in d2df4af, and start screen still wasn't the intended one.
Now we've got lua first, custom second, then the voltage and end of flight default screens. Makes sense, so that the most potentially powerful type is first.
2014-06-26 18:54:27 +02:00
bsongis
3d37b0d397 Lua bugfixes in getCustomFunction/setCustomFunction and
getLogicalSwitch/setLogicalSwitch
2014-06-26 07:16:43 +02:00
bsongis
1febac7bf9 Fixes #1347 2014-06-23 10:41:31 +02:00
bsongis
5fcba6e193 Fixes #1339 2014-06-21 21:49:26 +02:00
bsongis
9e1afe8cb0 Bad display after removal of a custom script 2014-06-20 12:09:43 +02:00
bsongis
b83f95ed1a Events are transmitted to the Lua telemetry screens. Menus are displayed
over those screens (needed at least for Reset Telemetry/Flight)
2014-06-18 22:42:04 +02:00