# Path planning with FW Offboard

**URL:** <https://discuss.px4.io/t/path-planning-with-fw-offboard/16671>\
**Category:** PX4 Autopilot\
**Created:** [May 11, 2020, 10:42am UTC](https://discuss.px4.io/t/path-planning-with-fw-offboard/16671 "2020-05-11T10:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salma\_Abd-Elaty](https://discuss.px4.io/user_avatar/discuss.px4.io/salma_abd-elaty/32/5744_2.png) [@Salma\_Abd-Elaty](https://discuss.px4.io/u/Salma_Abd-Elaty)\
**Post date:** [May 11, 2020, 10:42am UTC](https://discuss.px4.io/t/path-planning-with-fw-offboard/16671/1 "2020-05-11T10:42:26Z")

</div>

Hi,  
I want to implement a path tracking with VTOL FW mode in offboard mode I have a set of 350 Local points(x,y,z) that describe the path and I want to pass it to the autopilot to track the smooth path.

I tried offboard Setpoint with MAVSDK in SITL but from the observed behavior I think that a position set point for FW would mean a loiter point not as a way point to go through (similar to in mission mode).

1. I want to make sure if I understand this in the right way as If I want to implement the whole path I’d need a feedback from telemetry to transit to the next way point assuming that it will be applicable.

2. From my searching I couldn’t find resources for implementing a smooth obstacle avoidance path with FW in a simulation … All what I could find simulated is simple orbits. I’m not sure how the L1 Path follower controller really work ( I’m not expert in control at all ), but will it be actually able to follow a smooth trajectory like the one in the image or should I try to implement an external path following controller and send attitude set points to PX4. Is there any specific controller recommended?

I would really appreciate your advice on this issue as I think it’s somehow unimplemented before and it would be extremely exciting to get it done.

 ![Screenshot from 2020-05-11 12-42-14](https://discuss.px4.io/uploads/default/original/2X/e/ee1c492dba8e3e13ab6f0e2b856fdf41f53a2eb2.png)

---

<div class="post-metadata">

**Author:** ![junwoo0914](https://discuss.px4.io/user_avatar/discuss.px4.io/junwoo0914/32/12312_2.png) [@junwoo0914](https://discuss.px4.io/u/junwoo0914)\
**Post date:** [March 9, 2023, 8:53pm UTC](https://discuss.px4.io/t/path-planning-with-fw-offboard/16671/2 "2023-03-09T20:53:33Z")

</div>

That would involve actually either sending **attitude** (e.g. roll / pitch / yaw) setpoint or so.

As you said, the native position control doesn’t treat waypoints, as fixed wing vehicles can’t take waypoints as a target (which is feasible for multirotors, as they can \*stop on that waypoint), but should rather be given a path (as it always has to fly \*somewhere, in the direction of the path).

This is how it is done in this project for example:

[![](https://img.youtube.com/vi/5zciJZIiQZI/maxresdefault.jpg "Mapping in the Mountains with Fixed Wing Autonomy - Jaeyoung Lim, ETH Zurich") ](https://www.youtube.com/watch?v=5zciJZIiQZI)

@Jaeyoung-Lim is the FW path following done via attitude setpoint?

---

<div class="post-metadata">

**Author:** ![junwoo0914](https://discuss.px4.io/user_avatar/discuss.px4.io/junwoo0914/32/12312_2.png) [@junwoo0914](https://discuss.px4.io/u/junwoo0914)\
**Post date:** [March 9, 2023, 8:58pm UTC](https://discuss.px4.io/t/path-planning-with-fw-offboard/16671/3 "2023-03-09T20:58:56Z")

</div>

Relevant thread message in discord, if you are interested: [Discord](https://discord.com/channels/1022170275984457759/1062754210908745790/1062764297438121995)
