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

AP_Scripting: add Plane autoland applet #28591

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

Hwurzburg
Copy link
Collaborator

@Hwurzburg Hwurzburg commented Nov 12, 2024

Facilitates having an autoland FS mission setup for flying from fields without prior planning(or computers).....sets up an autolanding sequence based on takeoff direction....

https://youtu.be/Y8Hn5h5h-3s?si=d7UuL5IL1rAcW1ZM

@Hwurzburg
Copy link
Collaborator Author

Hwurzburg commented Nov 12, 2024 via email

@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 2 times, most recently from 3575140 to 323fa32 Compare November 12, 2024 13:44
@Hwurzburg
Copy link
Collaborator Author

@timtuxworth yeah I lost the mission reset somewhere along the way...made a few tweaks also...felt I needed the user to consciously set the SCR_USER params instead of providing a default if they did not...

@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 2 times, most recently from a886d16 to d46cf25 Compare November 14, 2024 02:41
@Rolf-G
Copy link
Contributor

Rolf-G commented Nov 15, 2024

I have read the instructions 10 times, but have not yet understood how exactly the landing direction is determined ? (I don't mean in the LUA script, but actually in flight operations)

@Hwurzburg
Copy link
Collaborator Author

Hwurzburg commented Nov 15, 2024

Ahrs has a get yaw function that returns vehicle heading....it's captured when valid and used to create the final approach waypoint in line with takeoff direction

@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Nov 18, 2024
@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 2 times, most recently from 7834b7b to d4a2109 Compare November 18, 2024 20:38
@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 3 times, most recently from 244ea59 to 57ebff7 Compare November 20, 2024 12:40
@Hwurzburg
Copy link
Collaborator Author

Hwurzburg commented Nov 20, 2024

I test flew on compass-less plane with strong wind...both into the wind and at 90deg crosswind....in both cases the created final approach waypoint was placed in line with throw direction....much better crosswind performance than waiting for LVL_ALT, since by then the yaw has weathervaned into the wind rather than being the initial throw/roll-out direction...

https://youtu.be/nd9rq2448Hw

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.

I think an autotest that checks we end up close to home and pointing in the reverse direction (within a margin) of the takeoff direction would be worthwhile

@Hwurzburg
Copy link
Collaborator Author

An autotest is gating a Lua applet?

@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 8 times, most recently from a636b32 to 99af312 Compare December 6, 2024 21:11
@Hwurzburg Hwurzburg force-pushed the rtl_lua branch 2 times, most recently from bcfe47e to ddf53f9 Compare December 8, 2024 18:59
@tridge tridge merged commit 051c2dc into ArduPilot:master Dec 10, 2024
100 checks passed
@Hwurzburg Hwurzburg deleted the rtl_lua branch December 10, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants