Michael du Breuil
8db8dcd2d2
AP_Scripting: Fix up some warnings
...
-Remove some non forward declared issues
-Remove forced min/max values from the enum range check
6 years ago
Michael du Breuil
84c2b18e43
AP_Scripting: Support enum types, add millis() remove manual GCS wrapper
...
This introduces enum types for range checking/returns, adds a millis(() call
(this returns a uint32_t), and moves over to an auto generated version of the GCS binding
6 years ago
Michael du Breuil
7690df1d69
AP_Scripting: Add boxed numerics for uint32_t types
...
Also fixes bad check in send_text that could seg fault in send_text
And fixes the fact that all freshly allocated userdata's need to be
memset
6 years ago
Michael du Breuil
e7d59514d9
AP_Scripting: Add an initial generator
6 years ago
Pierre Kancir
ad75b1e56f
AP_Scripting: update locations_are_same to same_latlon_as
6 years ago
Pierre Kancir
3e122c19f3
AP_Scripting: move location_update to Location and rename to offset_bearing
6 years ago
Michael du Breuil
7183b504a7
AP_Scripting: Fix bad location changes
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
67bbc6962a
AP_Scripting: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Michael du Breuil
b45970fded
AP_Scripting: Add location and ahrs user data
6 years ago
Michael du Breuil
9dd36ba511
AP_Scripting: Factor out common range constraints
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
19a8c5a6ed
AP_Scripting: Run multiple scripts at once
6 years ago
Michael du Breuil
b0a84ab7cf
AP_Scripting: Enforce a time limit for a script
6 years ago
Michael du Breuil
a2a8ac15b3
AP_Scripting: Add access to SRV_Channels::set_output_pwm
...
This also provides a more intresting function, with range checking. We
could choose to ignore this range checking and leave the script author
responsible for managing this, but it's probably better to protect the
author from themselves as much as possible, even if it makes the API
binding harder to automate
6 years ago
Michael du Breuil
68576eff32
AP_Scripting: Initial test script
6 years ago