Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Weather Display with ship speed subtraction
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Cockpit, Microcontroller
Tags: v1.0.32
File Size
Posted
Updated
187.178 KB
29 Jan, 2021 @ 8:04pm
30 Jan, 2021 @ 9:34am
3 Change Notes ( view )

Subscribe to download
Weather Display with ship speed subtraction

Description
This 3x3 Microcontroller requires Wind Speed, Wind Direction, Temp, Humidity, Rain sensor data. It also accepts Compass and Ship Speed data to attempt to subtract the ship's movement from the wind speed data. It is currently optimized to display on a 1x1 monitor.

Why ship speed subtraction matters: For example, if you are travelling in the direction of the wind, it reads a raw speed of 25 knots and sees you are moving at 15 knots, it will subtract 15 knots from the raw 25 knot speed to display approximately 10 knots wind speed. For this to work, the wind speed sensor and the compass should be facing the bow of the ship.

The ship speed subtraction works by decomposing the wind data into east/north components, decomposing the ship speed into east/north components, subtracting the ship speed and recombining the data back into a speed and crude compass data. Works best if the ship speed isn't much higher than the wind speed (I've tested a 30 knot ship in 20 knot wind, doing circles and it handled it fairly well, keeping the wind direction constant). Very low wind speeds may get lost in the variance of ship speed and if your ship pitches/rolls the sensor can only read the wind moving along the plane of the wind sensor. The best wind measurements requires a stationary wind sensor, this is more meant for situational awareness in your bridge.

If the wind speed drops below 1 knot, it replaces the wind direction and "kt" with the word "calm".

I intend to polish this up further, but if you have requests, please let me know. You are welcome to use this microcontroller on vehicles that you upload to the Workshop, please link here. Hope you enjoy it.
1 Comments
Pingu 8 Mar, 2021 @ 7:50am 
Maybe make a version for bigger screens, but other than that this is very good :steamthumbsup: