Michael du Breuil
75b133926f
AP_Scripting: Cleanups to remove false posive warnings
2020-03-28 21:16:09 +11:00
Michael du Breuil
d50e9865bd
AP_Scripting: Delete the lua object if we failed to allocate the required memory
2020-03-28 21:16:09 +11:00
Michael du Breuil
6753e99604
AP_Scripting: Add a return around luaL_error
...
This is the normal method of calling luaL_error which longjmp's away,
and it helps the static analysis tools realize that anything afterwards
will not be reached
2020-03-28 21:16:09 +11:00
Andrew Tridgell
5047eb88e2
AP_Scripting: use @ROMFS
2020-03-28 15:28:03 +11:00
Andrew Tridgell
ebec738b88
AP_Scripting: enable lua scripts in ROMFS
2020-03-28 15:28:03 +11:00
Andrew Tridgell
a91c587ef3
AP_Scripting: use new DirHandle for directory listings
2020-03-28 15:28:03 +11:00
bugobliterator
edaf9fa086
AP_Scripting: remove unused user of realloc from lua
2020-03-24 10:32:14 +11:00
Peter Hall
3f7ab6289d
AP_Scripting: move scripting_test.lua from examples to tests
2020-03-19 15:28:39 -07:00
Peter Hall
524d59ad78
AP_Scripting: add math and strings test scripts
2020-03-19 15:28:39 -07:00
Randy Mackay
05b563cf54
AP_Scripting: fixup comment in set-target-location example script
2020-03-19 15:17:11 -07:00
Randy Mackay
0846746932
AP_Scripting: add copter-fly-vertical-circle example script
2020-03-19 15:17:11 -07:00
Randy Mackay
fa0fb9ef34
AP_Scripting: add set-target-velocity example script
2020-03-19 15:17:11 -07:00
Randy Mackay
d7fb84c765
AP_Scripting: make bindings
2020-03-19 15:17:11 -07:00
Randy Mackay
60b3c6ca94
AP_Scripting: add bindings for start_takeoff and set_target_velocity_NED
2020-03-19 15:17:11 -07:00
Peter Hall
d37efe1b38
AP_Scripting: regenerate bindings
2020-03-19 14:59:34 -07:00
Peter Hall
67bfedd845
AP_Scripting: add button example script
2020-03-19 14:59:34 -07:00
Peter Hall
f5052b68a8
AP_Scripting: add binding for AP_Button get_button_state
2020-03-19 14:59:34 -07:00
Andrew Tridgell
87b97f8bee
AP_Scripting: added a VTOL failsafe example script
...
if fwd motor is lost try to make best effort to get home
2020-03-12 08:36:40 +11:00
Andrew Tridgell
e815b97c66
AP_Scripting: regenerate bindings
2020-03-12 08:36:40 +11:00
Andrew Tridgell
564740f06b
AP_Scripting: added get_vibration and get_target_location bindings
2020-03-12 08:36:40 +11:00
Andrew Tridgell
be7e142888
AP_Scripting: regenerate bindings for RPM
2020-03-12 08:36:40 +11:00
Andrew Tridgell
609b535dda
AP_Scripting: added RPM interface
2020-03-12 08:36:40 +11:00
Peter Barker
19249a13fd
AP_Scripting: tell the user where their scripts directory is on failure
2020-03-10 08:43:03 +09:00
Peter Hall
e95e996cc4
AP_Scripting: Add led matrix examples
2020-03-10 10:37:26 +11:00
Peter Hall
bf76a8c727
AP_Scripting: update LED_roll example
2020-03-10 10:37:26 +11:00
Peter Hall
8dccea4a15
AP_Scripting: regenerate bindings
2020-03-10 10:37:26 +11:00
Peter Hall
426f5e6180
AP_Scripting: support ProfiLEDs
2020-03-10 10:37:26 +11:00
Randy Mackay
1486421581
AP_Scripting: rename arming-check-batt-temp example script
2020-03-04 11:28:10 +09:00
Randy Mackay
2526aaeb74
AP_Scripting: set-target-location example script
2020-03-03 10:06:38 -07:00
Randy Mackay
ae8c8b71b2
AP_Scripting: make bindings
2020-03-03 10:06:38 -07:00
Randy Mackay
989241a6bd
AP_Scripting: fix limits on Location alt field binding
2020-03-03 10:06:38 -07:00
Randy Mackay
e8699ab9fe
AP_Scripting: add Location.alt to bindings
2020-03-03 10:06:38 -07:00
Randy Mackay
1e2fc444b6
AP_Scripting: add set_target_location binding
2020-03-03 10:06:38 -07:00
Peter Hall
fc0d845b6c
AP_Scripting: add NMEA decode example
2020-03-03 09:57:07 -07:00
Peter Hall
71f1755c97
AP_Scripting: update plane-wind-fs example
2020-02-27 18:33:56 -07:00
Peter Hall
6587653e14
AP_Scripting: regnerate bindings
2020-02-27 18:07:31 -07:00
Peter Hall
129dc16bdb
AP_Scripting: add mission scripting example
2020-02-27 18:07:31 -07:00
Peter Hall
370b6473a2
AP_Scripting: add AP_Mission bindings
2020-02-27 18:07:31 -07:00
Andrew Tridgell
e582432a2f
AP_Scripting: regen bindings
2020-02-27 13:12:26 +11:00
Andrew Tridgell
fe86d8bb0c
AP_Scripting: adjust for updated LED API
2020-02-27 13:12:26 +11:00
Randy Mackay
cc33c8d116
AP_Scripting: make bindings
2020-02-25 19:55:54 +09:00
Randy Mackay
c0bc696b86
AP_Scripting: add arming-check-batt-temp example script
2020-02-25 19:55:54 +09:00
Randy Mackay
ccaa74655c
AP_Scripting: support external authorisation for arming
2020-02-25 19:55:54 +09:00
Peter Barker
1e82ae4676
AP_Scripting: log disarm method
2020-02-22 12:16:29 +11:00
Michael du Breuil
d7a59bc449
AP_Scripting: Reduce the sleep time with no scripts
...
Lowering the sleep time when no scripts are pending, causes starting a
REPL session to respond much faster (this cuts the latency from up to 10
seconds to 1 second before the session is ready to start).
Also lowers the default scripting debug level to hide the statustext
from users, as in the general case this is just a spammy message if it
occurs, and we should be finding better reporting bits to get this to
the user.
2020-02-19 13:24:23 -07:00
Michael du Breuil
cf06beb1e6
AP_Scripting: Add support for REPL over MAVLink
2020-02-18 17:23:22 -07:00
Peter Barker
d24d1c587a
AP_Scripting: add documentation for DEBUG_LVL parameter
2020-02-18 20:25:58 +09:00
Michael du Breuil
c1a599d0bd
AP_Scripting: Reduce memory associated with the sandbox
2020-02-18 10:38:09 +11:00
Peter Hall
4ee17aea3d
AP_Scripting: regenerate bindings
2020-02-18 10:18:12 +11:00
Peter Hall
a04a34ff6a
AP_Scripting: add param get and set example
2020-02-18 10:18:12 +11:00