Cornering problem in automatic mission routes

My friends, I encountered an unresolved problem while debugging my unmanned ship. After using an automatic debugging script to debug the PID values, I found it perfect for both straight and circular movements. However, after creating polygons through MISSIONPLANNER’s task planning and automatically generating routes, I encountered a problem that I have been struggling with. Every time I reach a turning point, the ship always passes the turning point and then adjusts back, As shown in this picture like this:


what can I do to ensure that the actual route does not exceed the range and is connected by a smooth arc between two straight lines? such as the yellow line :slight_smile:

(upload://qhTUt0qdSb5fmngkzINrBKzl1O6.png)
Here are the BIN files from my voyage

Thank you very much for your enthusiastic help!

@rmackay9 can you help me ?

Try using the latest DEV/Master version. Test it in the Simulator 1st.

I’M USING 4.4.8NOW .I FOUND IT MAYBE ABOUT s-curve

@Yuri_Rage CAN YOU HELP ME ?

Latest DEV version is 4.5.0 Try that.

The caps lock key will not result in better or faster help.

I think your GPS is positioned well away from the vehicle’s center. Adjust GPS_POS* to tell the autopilot where the antenna is relative to the center of the turning axis.

thank you very much for your advice , i will try for a test .

I noticed that my ship doesn’t seem to have taken S-CURVE. I’m not sure what the conditions are for triggering this route. Can you give me a science popularization?

Your vehicle is skid steered, and you have WP_PIVOT_ANGLE set to 60 degrees, meaning that it will pivot on any turn where the heading change is greater than 60 degrees.

Reduce WP_PIVOT_ANGLE if you want different behavior.

yes i relized this in your old topic ,it seems i found the key ,thank you very much !

can i set WP_PIVOT_ANGLE to zero ?

Tuning Pivot Turns — Rover documentation (ardupilot.org)

WP_PIVOT_ANGLE holds the minimum angle error that will trigger a pivot turn. For example when set to the default of “60”, a pivot turn will be triggered if the vehicle’s heading is at least 60 degrees off from the next waypoint. This parameter should normally not be set below 30 unless you wish to disable pivot-turns which can be done by setting this parameter to 0. The vehicle will begin towards the next waypoints once its heading is within 10 degrees of the heading to the destination

1 Like

today i set the wp_pivot_angle value to 0, it worked! thank you very much !
屏幕截图 2023-11-06 184925
but i forget download the bin file from the FC,i will put it here next day .

2 Likes

Microsoft OneDrive - Access files anywhere. Create docs with free Office Online. here is my bin file ,i found when boat turn corners ,the speed is keep the wpspeed ,i think its work good ! this is my boat :

today i try to scan a river ,but the bota crazy ,why ?
can you help me ?
i guess maybe i forget turnoff the proximity avoid obstacles ?here is my bin log.