Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
*LUA* DYNAMIC POSITIONING SYSTEM (2x2 monitor)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
905.565 KB
29 Jan, 2020 @ 12:44pm
31 Jan, 2020 @ 11:41am
3 Change Notes ( view )

Subscribe to download
*LUA* DYNAMIC POSITIONING SYSTEM (2x2 monitor)

Description


DPS = DYNAMIC POSITIONING SYSTEM

This microcontroller allows you to lock your ship in a specified (GPS coordinates) point.

It uses GPS, COMPASS SENSOR (facing the bow of the ship), a WIND SPEED SENSOR (that indicates the efficiency of the DPS) a 2x2 MONITOR and 8 motors (a power source that works with 1 & -1 inputs) attached to propellers.

The propellers must be connected like this diagram shows:


PLEASE NOTE: !!!!!!
If your ship is too small or light you may have the problem that the propellers do not have time to decelerate near the target. You can control and reduce this effect by simply dividing the output going to the engines by a certain number (for example 20-40%) using the in-game divide logic block.

You can follow the logic that is made in this example or copy and paste the logic into your creations but give credits if you use it :-) it doesn't cost you anything but it would mean a lot to me, THANKS!

The DPS mathematics is made by Käsekuchen (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1684817456&searchtext=dynamic+positioning)
I made the LUA logic and re-worked the math a bit.
9 Comments
craftyscotsman 5 Nov, 2020 @ 2:12pm 
thanks bud :) credit will be there :)
sorry i ment like if co ords are not set- hit a button an it sets at current position. i can probably work out a botch fix haha
TheRealSte  [author] 5 Nov, 2020 @ 11:14am 
Sure! I've uploaded it so people could use it on their creation :-)) :steamhappy:

If you put your X-Y coordinates it should hold your position. Tell me if you have problems!
craftyscotsman 23 Sep, 2020 @ 9:08pm 
This is brilliant- ive installed it on a large salvage boat and it works grand!
is there anyway to make it auto hold position? eg- turn the system on and it holds the boats current gps and bearing?
thanks very much!
p.s when i upload my ship is credit + a link too here ok?
SamuelPepys 31 Jan, 2020 @ 5:56pm 
Thanks! I've added you so we can communicate further :)
TheRealSte  [author] 31 Jan, 2020 @ 11:29am 
Thanks for the advice, I didn't notice the symmetry problem, I'll try to fix it and update it :-)

And sure, I can help you (or at least try to)!!! :-))
SamuelPepys 31 Jan, 2020 @ 10:18am 
By the way: Considering how great this turned out, could I humbly request a little help with a winch LUA setup? Only if you have the time and want to do it :)
SamuelPepys 31 Jan, 2020 @ 10:17am 
Before I go on, I just want to inform anyone reading this that the example has azimuth thrusters that were placed using symmetry, which doesn't work. Azimuths works, but has to be placed down manually, otherwise it will not work even though the arrows point the right way. That is all.

Thank you a thousand times for this! Having LUA really improves this already super DP system, and it looks great! Much love! <3
TheRealSte  [author] 30 Jan, 2020 @ 7:01am 
I didn't explain myself very well, English is not my first language sorry: the wind speed sensor is used to warn that in certain conditions the DPS may not work as it should and that therefore it may be difficult to keep the ship stable due to the strong waves.
Tajin 30 Jan, 2020 @ 5:50am 
Why would you use a windsensor to determine if the (gps based) position hold is working or not?