Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Target Calculator
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Tags: v1.9.6
File Size
Posted
Updated
22.661 KB
11 Jan, 2019 @ 1:48am
28 Oct, 2023 @ 2:53am
4 Change Notes ( view )

Subscribe to download
Target Calculator

Description
Calculates the following data from your GPS and compass sensors and your target entry. This is not an autopilot but you can make your own autopliot based on the calculated data. Or you can build a navigation gauge quadrant in your ship.

- Distance to target
Units: feet, meter, kilometer, miles, nautical miles
Sensors needed for calculation: GPS and Target-Coordinates (e.g. from large keypad)

- Heading = direction you are pointing at (relative to true north)
Units: Radiant, Degree
Sensors needed for calculation: Compass sensor

- Bearing = direction (relative to true north) in which the target lies
Units: Radiant, Degree
Sensors needed for calculation: GPS and Target-Coordinates

- Relative Bearing = bearing, where the front of the vehicle is considered as "north"
Units: Vanilla [-0.5 .. 0.5], Radiant, Degree
Sensors needed for calculation: Compass sensor, GPS and Target-Coordinates

Controller size: 3x3

Inputs:
- GPS-X, GPS-Y (number): The GPS signal
- Target X,Y (number): The target coordinates
- Compass sensor [-.5 .. +.5] (number)

Outputs:
- Distance (number)
- Heading (number)
- Bearing (number)
- Relative Bearing (number)

Properties:
- angle units [radiant, degree]: for all angular outputs
- distance unit [ft, m, km, mi, nm]: for all distance outputs
4 Comments
RMC 22 Apr, 2020 @ 7:50am 
sengir_vampire. I have sent you a friend request to attain permission to reupload your module in a modified form to help suit my navigation system. If you agree then, of course, I will give credit due and links to this workshop creation
Stinger 14 Apr, 2020 @ 1:52pm 
Thank god for you, man. I'm straight-up ripping the bearing out of this and throwing it in my waypoint system, that aight with ya?
sengir_vampire  [author] 20 May, 2019 @ 4:04am 
I just wrote some simple controllers to put values to the screen. Check out https://steamproxy.net/sharedfiles/filedetails/?id=1746988033
Crunk(Boggartbob) 17 May, 2019 @ 8:24pm 
any way you could make this render data to a screen?