Hello. I have an autopilot project for a rc-boat with two engines (catamaran). The boat is equipped with GPS + Compass, I use a PID loop for the perfect flow line. Everything works perfect. When I approach the target 20 meters earlier, it reduces the engine power to 50% (it wants it to reach the target slowly) and this is where the problem begins, because when the boat has lower power, the steering sensitivity is higher, which results in the fact that after reducing it to 50%, the boat I put it sideways because the sensitivity of the PID correction is too high, how can I counteract it? My example standard pid configuration:
P: 2.0, I: 0.05, D: 0.1
One solution is to have one PID to get you to the 20m position and a second one that takes care of the final piece and then they can each have appropriate coefficients.
Hi, @prem111
I agree with @wildbill .
PID works great when it is tuned for a relatively stable predictable environment.
In changing speed, you have changed the rudder response, with the same inertia, which the PID is not tuned to, also you may have position errors as you close the gap between the cat and the target.
What is the precision of your navigation variables.
A special PID when less than 20m, as @wildbill has suggested, would make the job easier.
Tom...
![]()
This is a pretty good idea. I will give P: 1.0 in the final phase. But what if I have, for example, weak batteries, and 1.0 will turn out to be too little and the boat will not turn perfectly to its destination.
Hi,
Do you monitor your batteries?
Do you have data contact with your autonomous boat?
Tom...
![]()
PID doesn't know anything about your system. You do, so you can write a more intelligent controller that cares about battery voltage. Frankly though, if you're that low on power, you should have detected it and set course for the shore long before approaching the mark.
Have a look at the Adaptive Tuning Example