Rishabh
bd7190767e
AP_Scripting: Create scripts folder automatically
5 years ago
Andrew Tridgell
2c6fd13899
AP_Scripting: auto-build the bindings
5 years ago
Michael du Breuil
75b133926f
AP_Scripting: Cleanups to remove false posive warnings
5 years ago
Andrew Tridgell
5047eb88e2
AP_Scripting: use @ROMFS
5 years ago
Andrew Tridgell
ebec738b88
AP_Scripting: enable lua scripts in ROMFS
5 years ago
Andrew Tridgell
a91c587ef3
AP_Scripting: use new DirHandle for directory listings
5 years ago
Peter Barker
19249a13fd
AP_Scripting: tell the user where their scripts directory is on failure
5 years ago
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.
5 years ago
Michael du Breuil
cf06beb1e6
AP_Scripting: Add support for REPL over MAVLink
5 years ago
Michael du Breuil
c1a599d0bd
AP_Scripting: Reduce memory associated with the sandbox
5 years ago
Michael du Breuil
0e70eabdb9
AP_Scripting: Send lua errors to the console before status_text
...
This helps SITL where we frequently panic about to long a statustext,
which means a user never sees the intresting part unless they comment
out the sanity check, or run on a real board.
5 years ago
Michael du Breuil
9fe2c02079
AP_Scripting: Don't restart scripts if it panic'd during the initial VM creation
5 years ago
Andrew Tridgell
83eeca2586
AP_Scripting: fixes for modified AP_ROMFS API
...
need to use AP_ROMFS::free()
5 years ago
Michael du Breuil
cf94a02207
AP_Scripting: Stop running scripts if the enable flag ever goes false
5 years ago
Andrew Tridgell
b577787f68
AP_Scripting: use AP_Filesystem API
6 years ago
Michael du Breuil
7fdc9fef12
AP_Scripting: Garbage collect after each run of a script
...
For some reason this resolves a memory leak in a tight loop of file
open, close. This also extends the memory debug printing to be a bit
more useful.
6 years ago
Randy Mackay
0e9688a4e1
AP_Scripting: resolve gcs::send_text compiler warning
6 years ago
Michael du Breuil
0054544bd3
AP_Scripting: Add support for enums to be passed through
6 years ago
Michael du Breuil
d7e71f85b8
AP_Scripting: Add a debug level param
6 years ago
Michael du Breuil
e7d59514d9
AP_Scripting: Add an initial generator
6 years ago
Michael du Breuil
b45970fded
AP_Scripting: Add location and ahrs user data
6 years ago
Michael du Breuil
c191789651
AP_Scripting: Use dedicated heap
6 years ago
Michael du Breuil
0ede7b7d39
AP_Scripting: Catch lua panics
6 years ago
Michael du Breuil
2afe72d79f
AP_Scripting: Swap reschedule to be callback, delay
6 years ago
Michael du Breuil
ecb1a433b1
AP_Scripting: Add more runtime sanity checks
6 years ago
Michael du Breuil
40d5e233d4
AP_Scripting: Autostart all scripts in a given folder
6 years ago
Michael du Breuil
19a8c5a6ed
AP_Scripting: Run multiple scripts at once
6 years ago