Posts: 25
Threads: 6
Joined: May 2019
Reputation:
0
Hello everybody
I have just ordered Tinypilot and look forward to install it on my boat.
In the meanwhile I'm wondering about some issues.
One of this is:
does pypilot use roll and pitch values to evaluate correction to rudder or it bases its corrections only to compass?
Regards,
Francesco
Posts: 2,324
Threads: 21
Joined: Jun 2016
Reputation:
72
The main corrections are based on compass and yaw gyro. The accelerometers as well as compass are used to compensate gyros from drift. So in this way, it does use the accelerometers.
If you are asking if it makes corrections from pitching or rolling motion... I did experiment with this in the ocean and did not find useful results. I think it is mostly useful in gusting winds to react to roll from a wind gust, and I have plans to support this in the "wind pilot" which is a pilot that does not rely on the compass at all, instead it directly reacts to wind sensors... So steering a gps course on the wind pilot, it will follow the wind shifts to some extent.
Posts: 2,324
Threads: 21
Joined: Jun 2016
Reputation:
72
The newer version of pypilot introduces multiple "pilots" you can switch between.
This allows easy experimentation of different control algorithms. As for the gusting wind, it is unclear if it should use the roll gyro, or the wind speed (if available) or even the heel angle.
Going by heel angle would allow it to point closer in higher wind which can be useful (at least on a monohull) where going by roll gyro would allow it to react to gusts. Most likely it would be a combination of the two, like the P and D elements in the filter, but the best way to do it is unclear. Also the conditions really change how you might want this to work. I will be experimenting with this when I sail again in 2 weeks.
Posts: 2,324
Threads: 21
Joined: Jun 2016
Reputation:
72
what you are describing as far as reacting to gusts is not implemented in a proven way although I have done some experimenting
It may or may not require wind sensors and it is easy to add this but end up finding it makes the pilot worse at other times.
The main feedback is from the gyro regardless of anything, but adding logic to help surf waves is something interesting to consider.