ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AP_DDS: Add trajectory tracking control for Plane

Open Ryanf55 opened this issue 2 years ago • 3 comments

Feature request

Is your feature request related to a problem? Please describe.

The external control interface currently supports velocity control in body and earth frame. While #25381 is intended for high-level waypoint control, there is another desired form - trajectory control, that works well for plane.

Describe the solution you'd like

  • Design/pick a ROS message for trajectory control, based on mavlink, REP-147, and current research.
  • Add the interface for trajectory control in AP_ExternalControl
  • Implement the trajectory control in Plane
  • Write up a ROS 2 example demonstrating usage on a lemniscate or oval pattern
  • Contribute documentation to the wiki on how to run it

Describe alternatives you've considered

Velocity control as a workaround

Platform [ ] All [ ] AntennaTracker [ ] Copter [ x] Plane [ ] Rover [ ] Submarine

Additional context

https://ieeexplore.ieee.org/document/5611328

Ryanf55 avatar Oct 27 '23 02:10 Ryanf55

Hello Ryan. Is someone working on this issue actively? If not, I'd like to work on this issue.

Astik-2002 avatar Feb 09 '24 04:02 Astik-2002

I believe we can already control the position and yaw of a fixed-wing in guided mode. Do we need further inner-loop control with this?

Astik-2002 avatar Feb 09 '24 04:02 Astik-2002

Yea, I thought so too. Did you see this PR? https://github.com/ArduPilot/ardupilot/pull/26143

Ryanf55 avatar Feb 09 '24 04:02 Ryanf55

These two PRs adapt the L1 nav controller for path guidance in plane:

  • https://github.com/ArduPilot/ardupilot/pull/26328
  • https://github.com/ArduPilot/ardupilot/pull/26339

srmainwaring avatar Mar 06 '24 12:03 srmainwaring