PX4 Fixed Wing Mission Acceptance Radius

Hi. I’m using pixhawk 2.4.8 hardware with px4 last stable version. When I’m switching to mission mode plane start following waypoints but it assuming reached about 50 meter. I tried to change L1_Period to reduce L1_distance as stated in this document
Mission Mode | PX4 User Guide (changed from 20 to 12)
After that it fixed but sometimes it is acting like the value is 20 but sometimes it is so normal and gets close enought to the waypoints. What is the correct way of adjusting L1_distance ? Should I change other parameters given in equation like L1_damping ? I couldn’t find what they are affecting exactly. Thanks for your helps.

@sfuhrer I couldn’t find this information - MISSION mode points to NAV_ACC_RAD which says this is set by “NPFG switch distance”.
Search on that points to NPFG_SW_DST_MLT but that points to " track error boundary" - at which point I am lost. Would be good to put this info in our new mission mode fixed wing doc

1 Like

Thanks for your answer. I will try to find more info. Also I couldn’t find anywhere what NPFG stands for ? It’s a general control term or specific for PX4 ?

NPFG is the replacement for the Fixed Wing L1 navigation in PX4 v1.14. I’m still waiting for a bit of explanation on how it differs and what docs we need (though we fixed up the parameters in various places in the docs). I am GUESSING it stands for Nonlinear Path Following Guidance or similar, but who knows. Perhaps @tstastny or @sfuhrer could answer that too.

I found PR about this topic. As you said it’s stand for “Nonlinear path following guidance”. :

Someone who want to get idea rapidly about NPFG can watch this interesting video about Flying Backwards:

By the way NPFG not enabled by default. My acceptance radius problem solved with L1 tuning. I’m not sure but I guess waypoint tracking working better when launch the mission with automatic takeoff instead of switch to mission in air.

Again thank you very much for your interest. And thanks for development and test video to @tstastny

Hi @Alp_Ucan - the video you found is a bit dated for the current implementation on PX4 - you can find a better explanation with params etc in last year’s dev summit talk: https://youtu.be/LY6hYBCdy-0?si=PMqub0RA0ZW2ukqO

When I’m switching to mission mode plane start following waypoints but it assuming reached about 50 meter. I tried to change L1_Period to reduce L1_distance as stated in this document

There is no notion of L1 distance as a parameter on previous iterations of L1 or in NPFG - the L1 distance is calculated automatically based on the speed the aircraft is flying, and your tuning gains, PERIOD and DAMPING. The idea is that you want consistent dynamic behavior at any speed. You should find a tuning of period and damping that satisfy the convergence behavior to a line that you like. For switch distance, it does use the L1 distance, calculated from the prior variables and speed… but if you are unhappy with it’s default, you can use the SW_DST_MLT to adjust that per it’s param description.

Hope this helps.

1 Like