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
Copter: Feature: Ship Landing #24720
base: master
Are you sure you want to change the base?
Conversation
fa00144
to
6c17248
Compare
set_target_location can be used by scripting to set the target. This will require a scripted backend
the land target has to be set using set_target_location from this, both direction and distance will be calculated. If current location is unknown, relative target will not set, return false If there was no update in the last second, backend will report target lost.
add set_target_location to land mode forwarding the parameter to PrecLand backend
This allow modes to use velocity match for example takeoff
velocity matching with moving platfom while takeoff
The landing will approach target in follow mode then switch to PLND mode to land
2f2b910
to
550510d
Compare
Hi there! Very cool to see an attempt to support ship landing for Copter! Is this effort still ongoing, or did you drop it by now? |
It's not forgotten, I have the script, I just need to properly commit it. I might be able to do that next week |
Excellent! I'm working on simulating such a system right now, so I'm willing to test. |
I actually have simulation files (I was making this at summer, but I didn't have time to commit everything) Here's a bit messy but probably working simulation stuff (and simulations for VTOL with 2 trucks) |
Hi again! I've managed to get the simulation working, more or less. I had to figure out a bit the various necessary paths, but nothing too hard. With limited experimentation, I've noticed that I have an issue with the RTL phase of the landing: I For reference notice how the UA reports being at 25m when it sits on trailer 1. Could this be part of the problem? Or because I didn't use the |
The altitude is calculated relative to home, and the home has to be offset by some altitude for the approach. The approach happens in FOLLOW mode because waypoint updating doesn't really work for copters. To configure your copter correctly for landing, either use |
I still can't reproduce the moving landing of your video. The UA switches to LAND mode when it gets close to the platform, but it keeps lagging behind at altitude, never getting close enough to descend. If I stop the tractor, then it reaches it and lands. Another thing I noticed is that the throttle levels are not affected by the |
|
With a quick scan of the codebase I understand that the parameter This has me worried a bit, on whether the actual precision landing performance in Copter will be as good as the equivalent in QuadPlane. |
If there is too much lag in FOLL phase, try setting Disarm: that didn't really work for me either when testing in simulation, but I think it should work IRL (based on some testing) QuadPlane and Copter code contol logic is different, copying code won't work.. |
Hi again! Sorry for the delayed answer. I don't think
I have set The copter keeps lagging at ~4.3m behind the landing point, which is more than the default Conclusion: Still not successful with reproducing this PR. I might try a real-world effort, to rule out simulation numerical issues. Let me know if I can help with more information. P.S. I'm using the ship landing script you sent via the .tar.gz and not the one from the PR. But I don't think there will be much difference, right? |
Add ship landing feature to ArduCopter (moving base using precland)
PLND_TYPE
is5
(new)Demo video (simulation):
https://kosmx.dev/vtol_landing_poc/copter/cop.webm
Moving platform landing was already implemented in precision landing, I only added a scripted PrecLand backend.
For approaching the ship, updating the waypoint does not work like it does in VTOL, I use FOLLOW mode for approach and changing mode to LAND when I'm above target.