Skip to content
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

Lua binding to set airspeed for a fixed wing Plane #27223

Closed

Conversation

timtuxworth
Copy link
Contributor

@timtuxworth timtuxworth commented Jun 2, 2024

For a method to allow plane airspeed to be set for a fixed wing. Currently this will only work in Guided and Auto mode.

@timtuxworth
Copy link
Contributor Author

I thought it might be a good idea to split this out of my scripting PR's so the AP/c++ code can get potentially merged without getting caught up in discussions about the Lua code. I'm thinking others might also find this useful. @IamPete1 could I ask you to take a look?

ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
@timtuxworth timtuxworth force-pushed the plane_follow_bindings branch from 1bd4ad8 to e20a050 Compare June 3, 2024 16:38
@timtuxworth
Copy link
Contributor Author

Do you have any thoughts @Hwurzburg ?

libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
@timtuxworth timtuxworth force-pushed the plane_follow_bindings branch 2 times, most recently from 0ff3deb to 6b58e90 Compare June 16, 2024 17:22
@Hwurzburg Hwurzburg requested a review from IamPete1 June 17, 2024 20:49
ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
@timtuxworth timtuxworth force-pushed the plane_follow_bindings branch from 6b58e90 to 13f308f Compare June 18, 2024 00:44
@timtuxworth
Copy link
Contributor Author

This has been tested on a real quadplane by a partner.

@timtuxworth
Copy link
Contributor Author

Based on the dev call 2024-06-17 could you take a look at this please @tridge ? (no rush)

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterbarker I think this PR is a great example of where we need generic access to MAV_CMD_xxx from lua. As we have discussed I think we should just bind it to the first mavlink GCS instance instead of creating a dedicated instance (at least for now), but open to discussion
If we did that then all the MAV_CMD_GUIDED_xxx functionality would be available at very low cost, along with all the other fns

ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
ArduPlane/ArduPlane.cpp Outdated Show resolved Hide resolved
@timtuxworth timtuxworth force-pushed the plane_follow_bindings branch from 9e18667 to 6a751dd Compare June 24, 2024 01:28
@timtuxworth timtuxworth changed the title Plane follow bindings Lua binding to set airspeed for a fixed wing Plane Jun 24, 2024
@timtuxworth
Copy link
Contributor Author

Tridge's MavLink Command_int Lua interface PR is at least as good as this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants