Servers by jDrones

Sailboat Support


(Luís Vale Gonçalves) #137

I like the idea of using perhaps channel 6 for adjusting the wind speed manually, because even the smallest sensors are too big for the MicroMagic class https://www.theamya.org/boats/micromagic/ where one would have to fight even to get the minimal things onboard :laughing:


(Вячеслав ) #138

I meant sailing to the visible wind, as they do on real yachts. Recalculation of the visible wind in the true wind will always give an error at small angles of attack.
When driving in tacking the sails chosen are tight. The steering is controlled to maintain the course as close to the tacking angle as possible without significant loss of speed (heuristic rule 1: sharp course is more important than speed).

But, when the speed drops, the drift increases and the actual path of the boat becomes noticeably larger than the angle of tacking, and it will not be noticeable on the weather vane! The influence of this factor is amplified when the wind gets stronger. In addition, with further strengthening of the wind, the roll increases, hence the effective area of the sails decreases and the drift increases even more

If it is impossible to visually determine that the sails are winded and lost traction, the most important indicator of this is the Roll. Given the above, the Roll should be within certain limits for a certain wind force.


(David Boulanger) #139

Actually my wind vane and Bourne pot weighs almost 3 oz… It needs to be this large to function some what properly as I have not removed the grease from the pot. I’m very pleased with it because it gives me repeatable accurate wind direction in a bench testing situation. However, even with my EC 12 the 3 oz. of weight 5 feet above the center of gravity of a 24 pound boat is making the boat more tender in the water. Carrying this kind of weight aloft on the mast head will certainly be a challenge for an IOM or Thunder Tiger boat like Randy has and make the boat not sail as well as designed.


(David Boulanger) #140

So you want to change the Maximum Heel angle based on wind speed?


(Вячеслав ) #141

Drift doesn’t just depend on wind speed. Still depends on the displacement of the boat, the size of the keel and much more. But on any yacht all the dependencies can be reduced to two-Wind and Roll!


(Peter Hall) #142

ah, I think I understand.

For calculation of the true wind angle and speed the vehicles velocity vector is used so this will take into account any side slip.

Your suggesting to monitor the roll angle as a way to try and check if the sails are filling or not, and to check the side slip to see if we are too tight to the wind.

These situations are very tricky for the autopilot to spot, just as arduplane stall prevention has to be very conservative. Also they have to be written such that they will apply to any sailing vehicle in any conditions.

The longer term plan is to define a polar the boat will sail to. This would allow the boat to sail at the best true wind angle for each wind speed and this would hopefully avoid any issues with too much side slip. The polar would give the ideal heal angle for each wind speed and heading.

Hopefully we can add a auto tune style optimization algorithm to generate this polar on board.


(Вячеслав ) #143

Thanks. No big trouble, let’s wait.
I just don’t know what means “a polar the boat”


(Peter Hall) #144

It a record of the best boat speed at a given true wind speed and direction, see http://www.ockam.com/2013/06/03/what-are-polars/

This allows selection for the best heading to more towards your destination as fast as possible.


(Вячеслав ) #145

Polars, of course, it’s cool.
But they must be calculated separately for each boat and separately for the storm sail.
How many races do you need to make to have enough material for their calculations?
If in another place there will be a significant flow of water, then Polars will be incorrect?
Taking into account the angle of the roll, you can optimize the course in the first race


(Вячеслав ) #146


Even if you go by the tables of Polaris, it is necessary to align the boat.


(Peter Hall) #147

I was thinking that you would run a auto tune style mode for abit, probably 30 mins or so for a couple of different wind speeds. The boat would then use a maximizing algorithm to optimize its speed for each heading, the best speed would then be recorded as a point the polar. We would also record the heel angle this speed is reached at. As you say it would take some time to build a full polar for each boat as I guess we would have to average boat speed over tens of seconds to get a reliable reading. As you say if there is flow they will be wrong, but until we support a direct boat speed sensor we cannot tell if there is any flow in any case.

The advantage of the polar is you can use it to select tacking angles for best VMG.

I am not familiar with your roll based method, do you have any more information? I guess it is a method to optimize boat speed on a single heading rather than picking the heading in the first place? It would be nice to support vehicles with movable ballast, it sounds like this roll method may not apply in this case as the boat would always be upright?


(Вячеслав ) #148

My roll based method of determining the course is purely empirical (informal ). Based on personal experience sailing without any navigation equipment, only windvane. Always choose a course with a minimum angle to the apparent wind. When the speed falls and the roll (“heel angle”) is large, then slightly increase the angle. So constantly lie on the steering wheel and keep in mind: a sharp course is more important than speed


(David Boulanger) #149

But at the same time speed is needed to complete a tack and not get locked up in irons. It’s all about VMG but when its time to tack often a boat will fall off the wind a bit to build up speed and then tack.


(Вячеслав ) #150

That’s right, you need a certain speed to turn the boat. So before you turn increase the speed to the desired. Speed sufficient to turn your boat should be remembered


(David Boulanger) #151

I’ve just loaded the binary. Still don’t have the wind speed sensor on the boat yet. The sail parameters were all mixed up and had to be adjusted. Windvane parameters changed also with the max saying 3.3 when mine is 5. All the ATC stuff seemed to remain the same. Will give it a go tomorrow or Wednesday.


(David Boulanger) #152

So SAIL_MAX_XTRACK is now WP_OVERSHOOT and SAIL_LOITER_RAD is now LOIT_RAD? I’ve just been reviewing the parameters again.


(Peter Hall) #153

correct, there was some duplication of function so the parameters were consolidated


(David Boulanger) #154

Latest update for what it is worth. Yesterday I ran a 6 Kilometer run around the waypoints in my last video. It was like 11 or so runs around the pond. I was fortunate to have wind initially that was very lite and then it picked up a lot over the two hours. My tuning seemed to handle both conditions very well. since then I updated to Randy’s code. I think I have the change of parameters understood. I was going to let the boat loose in the Gulf of Mexico tomorrow but I am thinking that doing another test in the pond with the new code is probably safer. Although my windvane seems to be fairly accurate I again tried to calibrate it voltage wise and nothing happened. It’s spot on when pointing directly forward and agreeing with the heading of the boat but is off about 15 degrees when running down wind with bench testing. Also redesigned the wind vane to be more effective when the boat heels.

https://1drv.ms/u/s!AgqdUNhfFlnDgbQCLYsjfSKB446sGg


(David Boulanger) #155

I keep thinking of other questions. I can’t search them because this is so new…If WP_OVERSHOOT is 0 then will the boat just do one big tack? Can WP_OVERSHOOT be greater than 10 Meters. MP say’s 0 - 10 but I’m guessing it can be greater. The only problem I have really seen is what the boat does with a failed tack. I have seen the boat tack just when a wind shift comes and fails. The boat falls off the wind and keeps trying to tack with the rudder hard over. I don’t know if there is any way to realize a failed tack, straighten the rudder to build speed and try and tack again


(Peter Hall) #156

exactly right, setting WP_OVERSHOOT to zero is the equivalent of setting it to infinity. You can go as big as you like. Yeah when it tacks and fails is a know issue. Tricky to tell when its happening. I guess if its light you could increase the tacking angle so it will be going abit faster. It also struggles to bear away in strong wind.