Skip to content

Waypoint Turn Smoothing not reliable enough #8513

@b14ckyy

Description

@b14ckyy

Current Behavior

Navigation Turn Smoothing is a very nice feature and in conjunction with the WP Path Tracking it allows much greater precision for fixed wing navigation, but in its current state, the WP turn smoothing is not working well at all. Very tight angles are completely ignored and flown as if no smoothing is on. Angles bigger than 90° initiate the smoothing turn just a few meters before the waypoint, making the plane twitch in one direction for a second and then fly the turn unsmoothed, nevertheless.

Here are a few samples of the exact same mission, no wind in the HITL Simulation but the behavior is exactly the same in the real world.

WP Tracking on, turn smoothing off:
smoothing off
WP Tracking on, turn smoothing on
smoothing on
WP Tracking on, turn smoothing on-cut
smoothing on-cut
WP Tracking off, turn smoothing on
smoothing on no tracking

Here is the mission as reference:
image

The behavior of the smoothing algorythm is identical on all waypoints no matter what setting is set. I set the WP Radius down to 150cm as this is also Firmware default for this test but even with a bigger radius this makes no difference.

WP1: is smoothed a little bit sometimes, depends on the approach angle after launch
WP2: smoothing kicks in just about 10m before the actual WP position, has no real effect
WP 3-5 turn smoothing is completely ignored and the WP is just passed right through the center
WP6 works best so far, although not perfect, starts the smoothing turn and also the cut turn just a little bit late
WP7 is like WP2, a short twitch to the left but then flown like smoothing would be off
WP8 also initiates the smoothing turn too late but it does smooth it, just not as good as WP6
WP9 is a RTH WP and does actually initiate the smoothing at a good distance, just gets overwritten by the RTH climb first then, that's expected

Steps to Reproduce

  1. Plan a WP mission with different angles and long enough legs to allow the plane to settle the course
  2. Run the mission multiple times and watch how each turn is executed

Expected behavior

WP with very big angles between 120-180 degrees should not smooth at all or always CUT the corner. that makes sense as it allows a direct entry onto the next leg path. All smaller angle turns should properly execute the smoothing turn outside of the waypoint to have a smooth entry into the next leg for proper path tracking.
For the WP Cut feature, this should always be identical on all WP angles and also work reliably.

Suggested solution(s)

maybe its a bug in the code that has to be fixed? I am not sure. Bit this should be looked at again before the 6.0 RC phase.

Additional context

tagging @breadoven as this was his feature
Maybe we can also look again into the WP Path tracking. I found no way on any real plane or the simulator, to eliminate the overshoot. It is always there unless I set the tracking precision to 10 and the approach angle to 80° but then the whole tracking is basically useless in wind. May be nice to get this big overshoot reduced by aligning to the path earlier. The WP turn smoothing though is the bigger problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions