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
bsongis
b77d470684
background function added to Lua scripts (used only in telemetry
...
scripts)
2014-06-18 22:42:04 +02:00
bsongis
ec81b078fe
Now telem0.lua replaces the voltages screen and telem1.lua .. telem7.lua
...
are allowed. The user could now have 1+7+3+1=12 telemetry screens!
2014-06-18 22:42:04 +02:00
bsongis
2416dde7bb
Lua telemetry screens. Still not finished:
...
- the scripts need to be wakedup even when not displayed
- I only tested telem0.lua, but theorically we could have 7 telemetry
screens
2014-06-18 22:42:04 +02:00
bsongis
19ef43cd7f
Compilation error on VC++
2014-06-17 17:38:29 +02:00
bsongis
2094e87da5
'phase' renamed to 'flight mode' everywhere in the code
2014-06-17 10:59:00 +02:00
bsongis
d6ef1c011b
Now the Lua Telemetry scripts
2014-06-14 11:13:02 +02:00
Damjan Adamic
10413bbede
Removed compiler warning: lua.cpp:63:60: warning: missing braces around initializer for 'ScriptInputsOutputs' [-Wmissing-braces]
2014-06-14 08:24:00 +02:00
Damjan Adamic
91dfb0309e
Removed compiler warning: lua.cpp:1382:21: warning: variable 'filename' set but not used [-Wunused-but-set-variable]
2014-06-14 08:18:47 +02:00
bsongis
e3df420f8e
Lua scripts directories changed. We will now have
...
/SCRIPTS/WIZARD/
/SCRIPTS/TEMPLATES/
/SCRIPTS/MIXES/
/SCRIPTS/FUNCTIONS/
2014-06-13 14:37:57 +02:00
bsongis
89433127c4
Lua scripts now in custom functions!
2014-06-12 18:18:42 +02:00
bsongis
4cdd359405
Prevents a crash in Lua when the inputs/outputs count exceeds the
...
maximum allowed
2014-06-04 22:47:44 +02:00
bsongis
85cb8b3dbd
Wrong constant used for Lua inputs count
2014-06-04 22:22:22 +02:00
bsongis
634c327ac6
Vario value accessible in Lua scripts using getValue("vario")
2014-06-01 18:17:52 +02:00
bsongis
b10709f68b
Lua metrics (duration and interval) added to the Debug screen
2014-05-30 22:37:12 +02:00
bsongis
950f651af9
BMP are read on the stack to avoid a malloc. Lua memory displayed when
...
pressing [Menu Long]
2014-05-30 16:14:54 +02:00
bsongis
0963458d29
Plane Wizard flaps and brakes settings applied
2014-05-29 00:04:17 +02:00
bsongis
8c43ec47af
Lua mixes setup fixes
2014-05-28 22:44:41 +02:00
bsongis
8b641c1309
Allows standalone Lua scripts to be splitted (the wizard was over 20k)
2014-05-28 10:03:31 +02:00
bsongis
4797df176c
Warnings can now have an extra info displayed, which is useful for Lua
...
errors
2014-05-27 23:00:18 +02:00
bsongis
7cd7d0917e
Only works on the simu :(
2014-05-27 22:06:08 +02:00
bsongis
14dec6f432
Add a function to raise an error from a Lua script
2014-05-27 21:55:47 +02:00
bsongis
2be373900c
Wizard confirmation page
2014-05-27 08:43:36 +02:00
bsongis
fc876f0506
Confirmation page added - not as nice as others ;) - Engine settings
...
applied (others remain to do). Flaps instead of Flaperons
2014-05-26 16:35:47 +02:00
bsongis
3f2fb96caa
Lua garbage collector was never called. [Exit Long] will now force exit
...
on all standalone scripts.
2014-05-26 14:58:55 +02:00
bsongis
eb2fd118b7
Lua Wizard simplification. Engine paged added.
2014-05-26 10:20:29 +02:00
bsongis
b01a936b4d
The .. operator didn't work well with integers on the real radio (while
...
it was ok on the simu). I will try to fix the issue later, for now I
introduce the lcd.drawSource(...) function. The Wizard pages are now ok
on the radio itself!
2014-05-22 19:36:56 +02:00
bsongis
90d63738e8
New Lua functions added (needed for the wizard)
2014-05-22 16:47:35 +02:00
bsongis
857aca7e39
Lua changes needed for the wizard
2014-05-21 23:20:34 +02:00
bsongis
847baa09ef
Add a revision number to the versioning scheme
2014-05-20 21:17:23 +02:00