-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Add get_airspeed method to lua bindings #28044
base: master
Are you sure you want to change the base?
Conversation
…eed for planes with multiple airspeed sensors
We do have a existing PR for this. #20499 I do think you at least also need a binding for The further problem is that if you call the |
Clarify return of get_airspeed Co-authored-by: Peter Hall <[email protected]>
Co-authored-by: Peter Hall <[email protected]>
Co-authored-by: Peter Hall <[email protected]>
@AlexisMGL please compare/contrast to the PR from @MattKear which @IamPete1 pointed out |
f8ca3e7
to
889b0dd
Compare
I've added other airspeed methods from #20499. It's unclear to me if I should keep the range check, for instance, or not. |
@AlexisMGL this needs to pass CI... |
I can rebase if needed |
Add get_airspeed(instance) method, useful for planes with multiple sensors (currently, only the primary sensor is available).
-- This script gives airspeed value if available
function state_init()
gcs:send_text(6, 'script initiated')
return state_update, 500
end
function state_update()
end
return state_init,500