Stormworks: Build and Rescue

Stormworks: Build and Rescue

81 ratings
Radar Controller
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Tags: v1.3.4
File Size
Posted
Updated
38.776 KB
23 May, 2019 @ 7:11am
9 Oct, 2021 @ 1:39am
8 Change Notes ( view )

Subscribe to download
Radar Controller

Description
Draws a radar screen on a monitor or hud. It uses the distance sensor and the radar dish to show the surroundings.
Is has a heading(normal) mode where the radar screen alignes with your ship and a "north mode" where the radar screen is north-aligned.
You can switch the range between several user-predefined ranges
Color Values are 6-Digit-Hex-Numbers (RRGGBB): 000000 is black, 00FF00 is bright green, ...

There are two different radar setups possible:
1. Use a velocity pivot for turning the radar and link the current rotation to the controller
2. Use a compact velocity pivot, add a compass sensor to the radar and link the sensor to the controller. The design will be more compact
An optional radar will show the objects, too.

The setup and properties of the radar dish:
The radar dish has to be at the exact angle as the distance sensor (the developers removed the facing yaw input) . You can figure out the correct sweep speed for yourself (I'm too busy right now) or you set the sweep mode to static and put the dish on the same (or a corresponding) compact velocity pivot as the distance sensor.

Setting up the controller properties:
1. Set the pivot direction to match the dish rotation
2. Set the pivot offset to math the dish direction. If the radar is 180° off the the property to 0.5 turns.
3. Set the radar direction correctly. You can locate your own blip on the screen and move to see if you surround the radar clockwise or anticlockwise.
4. Set the radar offset correctly. Use your own blip to control the current settings.
I made working assembly to show a correct setup: testassembly

Hints:
- You can define the ranges with the ranges-property. Separate them with a comma, e.g. "250,100,50,25,10"
- Too large values for the phosphorescence property results in faulty screen drawing

Controller Size: 3x3

Please credit me if you use my microcontrollers! Thank you

Inputs:
- Rotation (Number) [-0.5 .. 0.5] from a velocity pivot
- Distance (Number) from the distance senor on the pivot
- Object Distance (Number) from the radar
- Switch Range (On/Off): to switch between the user defined ranges
- Orientation (On/Off): to toggle between heading and north-mode
- Heading (Number): The ships heading (from the ships compass sensor)

Outputs:
- Video Out (Video)
- Yaw [-0.5 .. 0.5] to the radar
- Range [m]: the selcted Range

Properties:
- Ranges (Text): The ranges, separated by comma
- Offsets [deg] (Number)
- Directions [normal/reverse]
- Phosphorescence (Slider 1..400): The phosphorescence of the screen
- Screen Color (RRGGBB): the screen color as 6-Digit-Hex
- Object Color (RRGGBB): the object color as 6-Digit-Hex
48 Comments
Jojo 30 Jun @ 11:59am 
oh wait nvm
Jojo 30 Jun @ 11:57am 
17*
willzwix1 8 Apr, 2024 @ 5:29pm 
fun fact: in the description, he said "radar" 16 times.















im bored, ok?
ova578 4 Jan, 2022 @ 10:20am 
i cant get it to work with the new radars either
sengir_vampire  [author] 17 Dec, 2021 @ 12:32pm 
The laser sensor has to point into the same direction as the radar dish. The easiest way is to put laser senor and radar onto the same pivot and set the radars sweep mode to static
omenakunkku 17 Dec, 2021 @ 11:51am 
if i use the normal radar can i still use the laser sensor?
xlxPlykxlx 9 Oct, 2021 @ 4:38pm 
I'm still not understanding this properly with the new radars. I could use some help if you have the time.
sengir_vampire  [author] 9 Oct, 2021 @ 1:43am 
I just added a quickfix for the new radar dishes. Please read the description on how to setup the new radar.
Echoless 8 Oct, 2021 @ 8:26pm 
is this going to be updated for the new radars?
sengir_vampire  [author] 9 May, 2021 @ 6:29am 
It's only the microcontroller and you can find it in the categorie "Workshop Microcontrollers" of the workshop components list. It's a small 3x3 controller with an image of a radarscreen.