ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: Use altitude in land & payload place auto mode mission commands

Open rishabsingh3003 opened this issue 5 years ago • 7 comments

Currently, when a Land or Payload Place command is given within mode auto, Copter flies to the longitude, latitude at the present height. The alt field is not used. I think it's a good feature to include the altitude as well. This is also in response to #13500

Testing: Tested in SITL with both terrain-following on and off. Works well. Here is an example, where Land command (with Alt field set to 40) was initiated at 20 meters:

land_alt

Fixes #13500

rishabsingh3003 avatar Apr 12 '20 06:04 rishabsingh3003

@khancyr thanks for the review! I was not aware of the helper function, now I have fixed the PR to use it. Please tell me if any other changes are required.

rishabsingh3003 avatar Apr 14 '20 18:04 rishabsingh3003

May I ask if this will invoke LAND_SPEED at 10m above the commanded LAND altitude, instead of what it currently does using home elevation as the reference elevation? I ask because I am testing cargo carrying using both slung-cargo package place mode or landing drop-off at an elevation that differs from the home elevation by 30m, so the landing approach profile has been troublesome. I've had to set WPNAV_SPEED_DN at 100cm/s as a compromise, but unfortunately ALL descents are at this speed, including a very long, slow descent 80m back to home elevation. I'd be glad to help test anything you work out. Welcome to email me if you like [email protected] . Thanks, and greetings from Virginia, USA.

FPVAdventure avatar Apr 20 '20 21:04 FPVAdventure

@FPVAdventure this type of specific enhancement I believe is out of scope for this PR. I think you should raise a new feature request in the issues section. I believe the best solution for you would be to script your requirements perhaps?

rishabsingh3003 avatar Apr 25 '20 12:04 rishabsingh3003

Thank you for your response. I am not a developer, but was just curious to know the intended behavior of your pull request, as I believe it may have useful applications to my use case. Essentially it is delivery of packages to destination of different elevation, but while retaining the descent speed followed by landing speed profile that is present in the default mission where the landing is at Home. In any case, thank you for working on AC!

FPVAdventure avatar Apr 25 '20 17:04 FPVAdventure

@IamPete1 all PR's from 1.5 years back was when I was experimenting withArduPilot and was solving "Good first issues". At the time I didn't know how to mark it for dev call and then a few months later they were forgotten :/

rishabsingh3003 avatar Sep 06 '21 17:09 rishabsingh3003

Yeah, we could get this one in I think..

rmackay9 avatar Sep 06 '21 22:09 rmackay9

Looks like we forgot about this one.

@lthall might be interested in this.

peterbarker avatar Sep 15 '22 12:09 peterbarker