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: quadplane terrain avoidance with can't make that climb #28625

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timtuxworth
Copy link
Contributor

@timtuxworth timtuxworth commented Nov 15, 2024

This is a Lua script that runs continually while a quadplane is in AUTO mode (typically running a mission) and monitors LIDAR readings for dangerously close terrain. If the terrain gets too close, the script will take over the quadplane performing one of three avoidance maneouvers:

  1. "Pitching" the plane will pitch up at the maximum rate/speed possible (subject to TECS limits)
  2. "Quading" the plane will switch to QHOVER mode and use the VTOL motors to gain altitude as quickly as possible
  3. "Can't make that Climb" - the plane will circle left or right up to a safe altitude above approaching terrain.

This has been extensively tested in the wilds of northern Canada.

@timtuxworth
Copy link
Contributor Author

Hi @IamPete1 and @peterbarker - I wonder if you could take a look at this. It's mostly a Lua script with some added bindings.
Is there anyone else who could/should review it?

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.

2 participants