Stormworks: Build and Rescue

Stormworks: Build and Rescue

45 ratings
Long Range/Laser Lua Radar/Lidar Controller
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Mechanical
Tags: v0.7.6
File Size
Posted
Updated
41.044 KB
24 May, 2019 @ 2:07pm
25 May, 2019 @ 8:49am
2 Change Notes ( view )

Subscribe to download
Long Range/Laser Lua Radar/Lidar Controller

Description
Description:
A radar/lidar displayer that shows the distance between you and whatever the distance sensor senses using lua, it also remembers old readings to create a circular depth map. Works on every monitor size!

How to use:
Place a laser distance sensor on top of a velocity pivot and connect the distance sensors output and the current position of the velocity pivot to the microcontroller (make sure the distance sensor is pointing forwards)
And connect the video output to a screen.
Also if desired connect the proximity alert to a buzzer and in the microcontrollers settings change the proximity alert distance(in meters).
When it is fully zoomed in it will show a max of 250 meters on the monitor, when it is fully zoomed out it will show a max of 2000 meters.
And if you want you can change the colours and transparency of all the things inside the microcontrollers settings.
(recommended speed of the velocity pivot is 0.4-0.47 so it doesnt accidently skip saving some positions)

Inputs/Outputs and Settings:
Distance sensor:
A number output value from a laser distance sensor between 0 and 2000.

Current rotation:
The current rotation being output from a velocity pivot in turns (the standard output)

Proximity alarm:
A on/off value to connect to buzzer so that they beep when the distance sensor detects a value lower than the specified distance.

Proximity alarm 2:
A on/off value to connect to buzzer so that they beep when the distance sensor detects a value lower than the specified distance.

Video output:
The video output to connect to screens so they display the radar/lidar (supports multiple monitors at the same time)

Radar "Colour":
The red, green and blue settings require a value between 0 and 255 to colour the main parts of the radar. Alpha also requires a value between 0 and 255 for the transparency, 0 is see through and 255 is 100% visible.

Old radar "Colour":
The red, green and blue settings require a value between 0 and 255 to colour the scanned parts of the radar. Alpha also requires a value between 0 and 255 for the transparency, 0 is see through and 255 is 100% visible.

Radar beam "Colour":
The red, green and blue settings require a value between 0 and 255 to colour the beam which is inside the scanned area. Alpha also requires a value between 0 and 255 for the transparency, 0 is see through and 255 is 100% visible.

Display text?:
A on/off value to set whether it should display the currently detected distance on the screen.

Proximity alarm minimum distance:
The minimum amount of meters the distance sensor needs to detect before it starts outputting to the buzzer output.

Proximity alarm minimum distance 2:
The minimum amount of meters the distance sensor needs to detect before it starts outputting to the buzzer output.

Standard zoom:
The standard amount of meters shown in the radar from the center.

Display zoom text?:
A on/off value to set whether it should display the current zoom used on the radar.

Display slider?:
A on/off value to set whether it should display a slider showing how zoomed in it currently is.

overlay coming soon maybe idk
the slider should be fixed now
14 Comments
Kronus 18 Apr, 2022 @ 8:03am 
OK, I found the problem. It does not work with compact velocity pivots. It requires the big velocity pivot to output the current rotation value. A pity! I hate the noise that the big velocity pivot makes on top of the pilothouse of my boat!
Kronus 13 Apr, 2022 @ 11:39am 
i'm having the same problem as Kahrstrom :steamsad:
Green Goose 13 Oct, 2021 @ 8:13am 
It was the pivot that was the problem, it was the wrong way around
ketrab2004  [author] 5 Oct, 2021 @ 11:23am 
is it not mirrored when you connect other microcontrollers?
Green Goose 5 Oct, 2021 @ 11:19am 
The monitor is the right way round though
ketrab2004  [author] 5 Oct, 2021 @ 9:01am 
that happens when the screen is mirrored, remove it and try placing it again
Green Goose 5 Oct, 2021 @ 6:04am 
The image is mirrored for some reason
Kahrstrom 7 Jan, 2020 @ 1:25pm 
Having some trouble getting this to work. Everything wired up correctly (afaik, double and triple checked), going at 0.47 speed and the radar is measuring range. The radar scan symbol is not moving on the screen however and it is not showing any radar signatures.

Is this outdated or am I doing something stupid?
Tiger__ 1 Oct, 2019 @ 11:13am 
thank you!
D_Bones 27 Aug, 2019 @ 2:05pm 
Great job !