ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: use 3d vector from plnd to slow down

Open chobitsfan opened this issue 2 years ago • 5 comments

This PR allows distance field in LANDING_TARGET been used to slow down descend speed. It is tested with CubeBlack in RTL 2022-08-25 10-24-58.zip Hi @kapacheuski , would you mind taking a look at this PR? Thank you very much

chobitsfan avatar Sep 11 '22 11:09 chobitsfan

@chobitsfan Hi. It looks like we are thinking some way! I think it needs to be implemented. By the way, we need to keep in mind that the distance to target != altitude in general. But it is approximately the same in case of deviation from target < 30 degrees. So I will be happy to test it when my PR (#21556) is merged (I have no camera-based landing system so I can test only using MAV_FARME_BODY_FRD (or any NED) messages). Anyway if you have the possibility to build my branch (#21556) and confirm that is working with your setup (camera-based system) - it will be awesome and speed up (I hope) the merging process. Let's keep in touch!

kapacheuski avatar Sep 12 '22 09:09 kapacheuski

@chobitsfan on the call this PR was approved. We'll merge it after it has some testing

rishabsingh3003 avatar Sep 14 '22 07:09 rishabsingh3003

Thank you. I will try to test it when weather condition is ok.

chobitsfan avatar Sep 14 '22 07:09 chobitsfan

flight test ok CubeBlack, Raspberry Pi and camera send LANDING_TARGET to FC, no rangefinder, RTL log 2022-09-15 15-40-51.zip video https://youtube.com/shorts/04SDixARTS8?feature=share

chobitsfan avatar Sep 15 '22 08:09 chobitsfan

pixhawk 4 mini, irlock and lightware sf-20 rangefinder, flight test ok log 2022-09-19 15-30-19.zip

Hi @rishabsingh3003 I have tested it with companion computer (LANDING_TARGET) and irlock (with rangefinder). Both configurations work well.

chobitsfan avatar Sep 19 '22 07:09 chobitsfan

@rmackay9 can you merge this one if you like it?

rishabsingh3003 avatar Sep 26 '22 19:09 rishabsingh3003

Merged, thanks! sorry for the delay.

rmackay9 avatar Sep 29 '22 23:09 rmackay9