Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
screen burn radar w scan
   
Award
Favorite
Favorited
Unfavorite
Tags: v1.0.21
File Size
Posted
Updated
36.385 KB
17 Nov, 2020 @ 8:58am
17 Nov, 2020 @ 9:52am
2 Change Notes ( view )

Subscribe to download
screen burn radar w scan

Description
Radar video logic that uses a pixel matrix rather than vector array. Looks better, less complicated, can be stacked as overlay.

connections:

boat_direction: Optional. Connect this to a compass sensor pointing to the bow of the ship. Leave disconnected or set to 0 to have the top of the output pointing north (for maps)

radar_direction: Required. Connect this to a compass sensor pointing the same direction as the radar. I'd recommend to place them both on a compact velocity pivot with an input of less than 0.1

radar_distance: Required. This is an input from the radar (or laser or sonar or anything else that returns a distance in metres

radar_trigger: Optional. This is a number between 0 and 1 which will effect the brightness of blips. Can be connected to signal strength but probably works best with some extra processing before input

range: Required. Scales the distance between the centre and the outer edge of the display in metres. If the range is set to 2000, a target at 1000 metres will appear half way between the centre and edge of display.

video_in: Optional. The radar will overlay whatever is fed into the video in. Otherwise the radar will display on a black background

video_out: Required. The display output from the radar.

disable_swipe: Optional. If receiving an on signal, the swipe effect of the radar moving will be disabled. This is useful when using multiple radar controllers stacked together to prevent multiple swipe effects washing out the screen

red, green, blue: Optional. Send values between 0 and 255 to these connections to set the colour of the radar effect. Leaving all disconnected will output green.


Video of it in action

https://manicphase.me/videos/watch/02acb7ec-15fc-4dcf-bd04-112228c8dca8
8 Comments
manicphase  [author] 25 Nov, 2020 @ 10:17am 
@.bishop I haven't actually worked on that, I just plug signal strength from the radar into it. I imagine something like (distance*strength)/10000 might work better, but it's a very subtle effect anyway.
.bishop 25 Nov, 2020 @ 3:49am 
Can u upload also the "processing" to make the blip from the signal strength brighter.
Would be very nice.
manicphase  [author] 23 Nov, 2020 @ 3:05am 
@wingnut. I've added details of how each connection works in the details here. That should help.
that_frog_kurtis 21 Nov, 2020 @ 4:22pm 
Also it would be great to see the controls as buttons on the screen
that_frog_kurtis 21 Nov, 2020 @ 4:21pm 
Any chance you can upload an example setup?
manicphase  [author] 20 Nov, 2020 @ 1:07am 
@Gardiner. 2/2


On my current set up, the radar "video out" feeding into "video in" of another of these controllers plugged into a laser distance sensor (lidar) mounted on the same pivot as the radar. The lidar also has a "constant on" block feeding into "disable swipe" a and "number" block of 200 feeding into the red channel. This means the same screen shows radar traffic in green and land in a darkish red. You could also probably put a sonar microcontroller in that chain and have a number feeding into the blue channel to show three different scans in three different colours all on the same screen controlled by the same range setter.
manicphase  [author] 20 Nov, 2020 @ 1:06am 
@Gardiner. 1/2

The brightness of the green is actually done on the alpha channel and the rest of the screen is transparent so you can do what you're asking:

If you leave the "boat direction" channel disconnected, north will be at the top of the screen, so you can then feed a map microcontroller into the "video in" channel and it will overlay the radar on a map (Not sure how you'd do the scaling though. I think map zoom = 1000*range, but i could be wrong) .

This also lets you daisy chain as many sensors as you want.
Gardiner 19 Nov, 2020 @ 3:48pm 
as a Radar Operator i approve, do you think you could add a map feature or even over lay a Lidar with it to aid in navigation. i have been trying to do something similar