Filters Kalman, Vision or PID - the boat is sailing in a straight line

I have a model of a twin-engine (500 class engines) boat. I wanted to do an autopilot, but my boat does not go in a straight line, but it corrects its position every now and then and it flows like a sine wave. It moves like a snake :wink:
Therefore, I would like to ask for help from someone who can write an algorithm that would control the boat to go straight. Of course not for free.
I read that you should use Kalman or Vision or PID filters but unfortunately I don't know anything about it.

I would like to be able to enter my LONG and LAT coordinates in the program and after starting the beds to flow in a straight line to the destination, nothing more.
I am using the RadioLink Mini M8N GPS TS100 compass. I don't know if the built-in compass is enough for proper flow or if you need to use an external module like GY-511 or another ??
I do not know how much such a thing may cost, please direct your offers via PM or email: nawasaqi@o2.pl
My budget for today is: $150

It would be best if the program was written in C under STM32.
But it can be Arduino based. My only dream is for my baitboat to go straight :wink:

Can you post the code you're using now?

When you talk about making a vehicle (or a boat in this case) Autonomous, the algorithm part comes later.

The first question should be that is the boat Drive-by-wire enabled? Meaning, can we maneuver the boat purely by computer commands?

If not, that has to be the first step here. Think of this as converting a manual vehicle into Autonomous one, so essentially the requirement you post is NOT just a software one, but in fact a Mechatronic one.

So in order to achieve what you propose, one would require a team of mechanical, electronic and embedded software developers which would first make the boat drive by wire and then perhaps work on the path planning algorithm you desire.

The point I'm trying to make here is this ain't a hobbyist side project which can be done in $150-$200, expect this to cost you more than $3000 any given day.

Everything is implemented using modern object-oriented methodologies and requires a C++ Standard Library (I wrote one of those too). Note PID design & implementation require knowledge of Control Theory and Engineering, and is not a "hack". A good intro can be viewed here: PID controller - Wikipedia. Cheers!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.