Hi everyone,
I’m trying to better understand how GUIDED mode works in ArduPlane, especially the turning behavior.
I have set the following parameters:
WP_RADIUS = 90 m
WP_LOITER_RADIUS = 150 m
When the plane is flying toward a Guided point, I noticed that it starts to bank and initiate the turn at approximately 210 meters away from the target point.
I have already looked in ArduPlane/mode_guided.cpp, libraries/AP_L1_Control/AP_L1_Control.cpp. However, I still cannot find exactly where and how the decision is made to start the bank.
My questions are:
What exactly determines when the plane starts banking/turning toward the Guided point?
Which part of the code controls this behavior?
Thank you!