Stormworks: Build and Rescue

Stormworks: Build and Rescue

40 ratings
Compass Band with target indicator
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Tags: v0.9.32
File Size
Posted
Updated
28.626 KB
22 May, 2019 @ 1:27am
3 Feb, 2020 @ 2:48am
4 Change Notes ( view )

Subscribe to download
Compass Band with target indicator

Description
Draws a compass band to a monitor or hud. It shows a compass band, your heading and the target heading. Colours a re configurable.

Controller Size: 3x2

Inputs:
- Video In (Video)
- Compass Sensor (Number) [-0.5 .. 0.5]
- Target Bearing (Number) [0..1], [0 .. 2*pi] or [0 .. 360°]
- Target Enabled (On/Off)

Outputs:
- Video Out (Video)

Properties:
- Bearing Type (Dropdown) [Vanilla/Radiant/Degree]: for the target bearing calculation
- alignment (Toggle) [top/bottom]: displaying at the top or bottom of the screen
- heading indicator (Toggle) [hidden/visible]: show or hide your heading-number
- margin (Number): defines the margin to the left and right
- Color (RGB-String): for the compass (band and heading) in Hex RRGGBB
- Target Color (RGB-String): for the target indicator in Hex RRGGBB
16 Comments
ibuildblasters 20 Jun, 2023 @ 5:05am 
oh, awesome. thank you!
sengir_vampire  [author] 20 Jun, 2023 @ 12:55am 
Don't know what you mean with pure overlay for an HUD. You don't need to connect the Video-In at all.
ibuildblasters 19 Jun, 2023 @ 6:50pm 
Would you make this a pure overlay for an HUD?
sengir_vampire  [author] 18 Jan, 2021 @ 1:17am 
I just tried the controller and it works fine, perhaps you forgot to connect the target-bearing-input or set the bearing-type-property to the wrong type.
Example: Add a GPS-sensor (gpsX, gpsY) and a large Keypad (targetX, targetY), calculate the bearing with atn2(targetX-gpsX, targetY-gpsY) and feed the result into the correct input of the controller AND set bearing type to RADIANT.
Private_Red 17 Jan, 2021 @ 3:12pm 
Please fix the target heading, I've been trying for at least 10 minutes to hook it up to my plane it wont work, Im trying to display the target as the front of the plane but no matter what I do the target is always north.
madvent 28 May, 2020 @ 12:46pm 
Thanks, works like a charm !
carn1vore 3 Feb, 2020 @ 10:46am 
Perfect. Thanks a lot. I love this hud.
sengir_vampire  [author] 3 Feb, 2020 @ 2:54am 
I added a property to hide the heading number. The band is now compressed on smaller screens.
carn1vore 2 Feb, 2020 @ 1:37pm 
I mean heading, excuse me.
carn1vore 2 Feb, 2020 @ 11:58am 
Would it be possible to toggle the bearing display on/off? I'd like to use it on a 1x1 hud and would just like the compass N/NW/W/SW/W/SE/E/NE to scroll across.