Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Engineering & Systems > Marine Electronics
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 01-08-2019, 22:08   #1
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Equations for calculating true wind with attitude?

Cheers,

We have B&G instruments on our new Hanse, but unfortunately not the ones (H5000 series) that account for pitch and roll when calculating wind angle and speed.

I'm running my own Raspberry system, though, and can make the calculations myself, if I only knew how

From the NMEA2000 network I get AWA, AWS (and also B&G's pitch+roll). From the Raspberry I get pitch and roll (in degrees or radians). Can anyone point me towards the math I need to a) adjust AWA/AWS and b) calculate TWA/TWS?

Kindest regards and thank yous
Mikael
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Old 01-08-2019, 23:47   #2
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: Equations for calculating true wind with attitude?

It's not the angle of pitch/roll that you need, it's the rate of change.
You need to divide the change from one reading to the next by the sampling frequency to get degrees per second and then multiply that by the height of your mast to get the speed of movement in both pitch and roll. Then simple vector trigonometry will give you a speed and direction of movement of the wind instrument relative to the hull. You can then use that data to correct AWS and AWA with another simple trig calculation.
StuM is offline   Reply With Quote
Old 01-08-2019, 23:52   #3
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: Equations for calculating true wind with attitude?

To answer the second part. TWS/TWA are again simple vector trigonometry once you know AWS, AWA and boat speed.

For both problems, drawing the vectors on a piece of paper and working out where you need sines, cosines to determine the missing data points is the best way to understand it.
StuM is offline   Reply With Quote
Old 02-08-2019, 00:38   #4
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Re: Equations for calculating true wind with attitude?

Thank you!

I found this post as well: https://kingtidesailing.blogspot.com...or-vessel.html

But returning to your comments: the rate of change, ok!, but won't the wind sensor return a different wind angle just being steadily tilted to one side? Due to the effect of gravity, if nothing else?
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Old 02-08-2019, 03:07   #5
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by mglonnro View Post
Thank you!

I found this post as well: https://kingtidesailing.blogspot.com...or-vessel.html

But returning to your comments: the rate of change, ok!, but won't the wind sensor return a different wind angle just being steadily tilted to one side? Due to the effect of gravity, if nothing else?

Iterations 1 and 3 are covered in my earlier posts.


I am doubtful about Iteration 2.
"If you take a normal anemometer and tilt it 90 degrees to the side, it will stop working because there is no more wind that can turn it" That depends on which way you tilt it If you tilt it 90° to the side in a headwind or tailwind, it will be unaffected. If you tilt it 90° fore or aft in the same situation, it will come to a stop.


"But a wind vane tilted X degrees to the wind will register wind depending on the angle.", At any reasonable degree of heel, say up to 20-30°, I would expect the tail of the wind vane to still trail away from the wind.
StuM is offline   Reply With Quote
Old 02-08-2019, 04:05   #6
Registered User

Join Date: Dec 2010
Location: W Carib
Boat: Wildcat 35, Hobie 33
Posts: 13,486
Re: Equations for calculating true wind with attitude?

An interesting technical exercise, but will it ultimately solve a pragmatic problem? For example, will it yield data which can be used to sail more effectively than just using a dampening factor?
belizesailor is offline   Reply With Quote
Old 02-08-2019, 04:14   #7
Registered User
 
s/v Moondancer's Avatar

Join Date: Nov 2008
Location: Miami
Boat: Boatless
Posts: 1,578
Re: Equations for calculating true wind with attitude?

Just after we left New Zealand our wind instruments broke...somehow we managed to get to Japan and we never missed them!
__________________
Phil

"Remember, experience only means that you screw-up less often."
s/v Moondancer is offline   Reply With Quote
Old 02-08-2019, 05:17   #8
Registered User

Join Date: Dec 2010
Location: W Carib
Boat: Wildcat 35, Hobie 33
Posts: 13,486
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by s/v Moondancer View Post
Just after we left New Zealand our wind instruments broke...somehow we managed to get to Japan and we never missed them!
Certainly not necessary, but useful and fun. My anemometer has been out of commission for several seasons now. I plan to fix it for this season...mostly so I can play around with instrumentation like Open Chart Plotter.

Sometimes when I teach sailing I cover the instruments so students have to learn to sense the wind. My Hobie 33, which I original acquired for the sailing school, intentionally has no instruments (I ripped the old ones out and glassed in the holes).
belizesailor is offline   Reply With Quote
Old 02-08-2019, 08:28   #9
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by belizesailor View Post
An interesting technical exercise, but will it ultimately solve a pragmatic problem? For example, will it yield data which can be used to sail more effectively than just using a dampening factor?
I want to create polars to compare with the published ones. Eventually trim, record data, see what I can do to improve sailing speed (and/or comfort).

I've (a bit superficially) went through all the calibration thingies according to the manuals but when tacking a) true wind jumps around way too much (like 10-15 degrees) and b) close hauled apparent wind angles are likewise quite different (like 40 deg vs 29 deg).

I want to solve this so that I can get reliable recordable data

When reading the B&G manuals I saw that the more expensive sailing computers also correct for pitch and roll, and have a couple of additional correction tables as well. I don't know how big these corrections are, but just trying to figure out everything bit by bit.

Standing rigging trim is on the todo list also.
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Old 02-08-2019, 08:34   #10
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Re: Equations for calculating true wind with attitude?

Here's the project: https://community.nakedsailor.blog/b...C2X9X2LbkzMhFm (can take a while to load)

It's "recording everything" and it would be nice if what's recorded is at least somewhat accurate
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Old 02-08-2019, 09:02   #11
Registered User

Join Date: Dec 2010
Location: W Carib
Boat: Wildcat 35, Hobie 33
Posts: 13,486
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by mglonnro View Post
I want to create polars to compare with the published ones. Eventually trim, record data, see what I can do to improve sailing speed (and/or comfort).

I've (a bit superficially) went through all the calibration thingies according to the manuals but when tacking a) true wind jumps around way too much (like 10-15 degrees) and b) close hauled apparent wind angles are likewise quite different (like 40 deg vs 29 deg).

I want to solve this so that I can get reliable recordable data

When reading the B&G manuals I saw that the more expensive sailing computers also correct for pitch and roll, and have a couple of additional correction tables as well. I don't know how big these corrections are, but just trying to figure out everything bit by bit.

Standing rigging trim is on the todo list also.
Potentially fun and useful !

So, your hypothesis is that these variations are caused by mast movement, right?

Matreon, and others, solve this problem by putting sensors in their transducer. Putting an accelerometer at the masthead would be one way to solve this problem with direct readings rather than a secondary reading (sensor in an offset location). Any sensor not at the masthead will be offset both vertically and horizontally...making the calculations more complicated (unless maybe you can mount it precisely under the mast). Seems to me if you want very accurate readings then putting at the masthead would simplify matters.

https://www.maretron.com/products/wso100.php

As I recall there is a thread here discussing the accuracy of the Matreon product and it wasnt very favorable. Might be worth finding that thread. I think "Dockhead" started it.
belizesailor is offline   Reply With Quote
Old 02-08-2019, 09:24   #12
Registered User

Join Date: Oct 2014
Posts: 7,485
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by s/v Moondancer View Post
Just after we left New Zealand our wind instruments broke...somehow we managed to get to Japan and we never missed them!
Exactly, turning the wind speed meter off is my best practice when sailing. I can readily trim sails and adjust course without any electronic input. I especially hate it when someone is monitoring the wind speed meter and saying the indicated speed with each passing gust. And my neck greatly appreciates not looking up at even a simple windex. A glance at the tell tales on the sails and on the shrouds provides the guidance I utilize and of course just the feel of the speed and direction, especially at night when I don't desire to have my night vision impaired by any glow of instruments. Call me simple.
Montanan is offline   Reply With Quote
Old 02-08-2019, 09:26   #13
Registered User

Join Date: Oct 2010
Location: Abaco, Bahamas/ Western NC
Boat: Nothing large at the moment
Posts: 1,037
Re: Equations for calculating true wind with attitude?

Other than mental exercise, WHY?
Tingum is offline   Reply With Quote
Old 02-08-2019, 09:28   #14
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by belizesailor View Post
Potentially fun and useful !

So, your hypothesis is that these variations are caused by mast movement, right?
I think my base calibration is off as well, but mast movement certainly affects it to some degree. I'd be happy to get readings that are +/- a couple of degrees from reality.

Quote:
Matreon, and others, solve this problem by putting sensors in their transducer. Putting an accelerometer at the masthead would be one way to solve this problem with direct readings rather than a secondary reading (sensor in an offset location). Any sensor not at the masthead will be offset both vertically and horizontally...making the calculations more complicated (unless maybe you can mount it precisely under the mast). Seems to me if you want very accurate readings then putting at the masthead would simplify matters.

https://www.maretron.com/products/wso100.php

As I recall there is a thread here discussing the accuracy of the Matreon product and it wasnt very favorable. Might be worth finding that thread. I think "Dockhead" started it.
I will look for it!

B&G with their Hercules CPU (I think) use the standard gyro mounted somewhere down in the hull. I wonder what degree of accuracy they give? As I wrote above, getting to zero point something isn't what I'm looking for but +/- 10 degrees isn't very fun
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Old 02-08-2019, 09:33   #15
Registered User

Join Date: Jul 2015
Boat: Hanse 531
Posts: 1,076
Images: 1
Re: Equations for calculating true wind with attitude?

Quote:
Originally Posted by Montanan View Post
Exactly, turning the wind speed meter off is my best practice when sailing. I can readily trim sails and adjust course without any electronic input. I especially hate it when someone is monitoring the wind speed meter and saying the indicated speed with each passing gust. And my neck greatly appreciates not looking up at even a simple windex. A glance at the tell tales on the sails and on the shrouds provides the guidance I utilize and of course just the feel of the speed and direction, especially at night when I don't desire to have my night vision impaired by any glow of instruments. Call me simple.
I could do it that way as well, but for that I'd need two boats
__________________
Call me Mikael
nkdsailor.blog
mglonnro is offline   Reply With Quote
Reply

Tags
cal, wind


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Manual on Ground Wind, True Wind, Apparent Wind Dockhead OpenCPN 11 15-08-2018 20:15
How to calculate and display true wind from apparent wind and SOG? RhythmDoctor OpenCPN 15 30-04-2018 06:02
Convert Apparent wind and boatspeed to true wind GWB OpenCPN 1 30-11-2015 14:40
Wind transducer: True vs. apparent wind? RhythmDoctor OpenCPN 3 04-01-2015 14:28
New theory (and old equations) may explain causes of ship-sinking freak waves learningcurve Flotsam & Sailing Miscellany 0 14-09-2006 06:07

Advertise Here


All times are GMT -7. The time now is 12:42.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.