Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Waypoint Calculator
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Tags: v1.7.3
File Size
Posted
Updated
24.488 KB
31 Jan, 2020 @ 12:22am
25 Apr, 2023 @ 7:52am
2 Change Notes ( view )

Subscribe to download
Waypoint Calculator

Description
Calculates the following data from your GPS and compass sensors and your waypoint 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. It also has an output to show if you reached your target.

- 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: Vanilla [0..1], Radiant, Degree
Sensors needed for calculation: Compass sensor

- Bearing = direction (relative to true north) in which the target lies
Units: Vanilla [0..1], 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 (composite): The channels are selectable
- Compass sensor [-.5 .. +.5] (number)

Outputs:
- Distance (number)
- Heading (number)
- Bearing (number)
- Relative Bearing (number)
- Waypoint Reached (on/off): Enabled when the distance to the target is below the distance threshold

Properties:
- angle units [vanilla, radiant, degree]: for all angular outputs
- distance unit [ft, m, km, mi, nm]: for all distance outputs AND the threshold input
- Channel Waypoint X,Y (slider 1..32)
- DIstance Threshold (number):
3 Comments
Urakuya 26 Apr, 2023 @ 4:22am 
I used the relative bearing output on a dial set to -0.33 to 0.33 and it perfectly points in the direction of the way point. Really useful for early game career since u can't see waypoint and advanced setups can be unaffordable. I also changed the comp input to 2 number inputs because the large keyboard that has paste waypoint functionality doesn't have a comp output. Thanks for the great upload I was really having trouble figuring out the math for bearings you saved me so much time and effort.
sengir_vampire  [author] 25 Apr, 2023 @ 7:53am 
Thank you, error fixed and uploaded :)
Urakuya 25 Apr, 2023 @ 7:11am 
Great job well done, you made an error with the vanilla output property (anything times 0 is 0!) just change it to 1 and works