-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Plane: add Autoland mode #28771
base: master
Are you sure you want to change the base?
Plane: add Autoland mode #28771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this idea - some suggestions.
plane.next_WP_loc = home; | ||
uint16_t bearing_cd = wrap_360((plane.takeoff_state.takeoff_initial_direction + 180)); | ||
plane.next_WP_loc.offset_bearing(bearing_cd, final_wp_dist); | ||
plane.next_WP_loc.alt = home.alt + final_wp_alt*100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use set_alt_cm(), we are trying to move away from using alt directly. You could provide ABOVE_HOME as the frame.
Very interesting, I would instead have a suggestion for a much more solid approach in my opinion, since yours is great for taxiing takeoffs but not for hand launches, which is often not necessarily the direction of the runway. Instead, here is what I propose, in my opinion the most logical and hyper simple: if there was the possibility in Ardupilot to fix two points on the runway, to indicate LR of the correct axis would be more than enough to tell Ardupilot to use that line to perform any kind of LAND, so something like this. In this very simple approach Ardupilot knows of the runway the direction, the center and the correct length, so he knows that that is the runway in all its useful aspects. |
@robustini many people never use MP after initial setup and arent comfortable with mission planning....I never use missions other than autotakeoff/do-land-start/landing sequence with my mission selector app to select land direction for my field based on wind direction....or my UniversalAutoLand lua when travelling to other locations this is the C++ implementation of my UniversalAutoLand lua script which I use when traveling and just stop at a location and fly...no laptop used.. |
fcf710d
to
a1b1b13
Compare
Should this be disabling fences (autoenabled, and floor) when doing a landing? |
It does a NAV_LAND....so whatever it does or does not |
Upon entry creates a final approach waypoint at parameterized distance and alt from home in the opposite direction of takeoff direction, flies to to it and does a land like NAV_LAND.
If a DO_LAND_START sequence(s) exist, will jump to them instead
Needs an autotest, which is beyond me to write