-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Scripting: add Lua bindings to check VTOL approach and land phases #27531
Conversation
ca519fe
to
99c75a9
Compare
added lua bindings as well as example script to check if we are in the VTOL approach and landing phases
Made the functions that check if we are in VTOL approach or landing phase public to expose to Lua scripting
99c75a9
to
752b4d3
Compare
@Hwurzburg @IamPete1 I added the empty line, but it seems to dissapear when I commit. Appologies for the confusion, still learning. |
It could be VS Code or git itself, sometimes it will not let you commit pure whitespace changes. |
Bindings are kind of expensive, would it be reasonable to instead have an enum and one public function which checks and returns a specific property? |
@tpwrules I don't see why not, this had actually crossed my mind when I was writing the example script. I'll do that. Thanks for the feedback! |
752b4d3
to
3386582
Compare
@tpwrules something like this? Yet to do the bindings and a new example script - just wanted to check I'm going in the right direction. EDIT: nevermind - I need a couple days here |
3386582
to
e0ad8d6
Compare
This PR adds Lua bindings for the follwing functions from quadplane.h :
It also makes the functions public in order to expose them to Lua scritping.
Tested in SITL with the example script running: