Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
LUA Radar/Lidar Controller
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Mechanical
Tags: v0.7.4
File Size
Posted
Updated
31.699 KB
May 21, 2019 @ 1:10pm
May 22, 2019 @ 11:34am
2 Change Notes ( view )

Subscribe to download
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!

Long range/laser version

How to use:
Place a 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).
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 distance sensor between 0 and 250

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

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.


overlay coming soon maybe idk
10 Comments
ketrab2004  [author] Mar 8 @ 2:16am 
did you connect the "current rotation" input and did you make the pivot turn?
whitenerdy55 Mar 7 @ 3:46pm 
hey im having a prob when i turn it on the line dosent move
KanaSalaatti Dec 15, 2019 @ 10:34am 
wonderful
ketrab2004  [author] Dec 15, 2019 @ 10:23am 
yes KanaSalaatti
KanaSalaatti Dec 15, 2019 @ 5:53am 
can i use this in my own creation? Of course i will credit you
ketrab2004  [author] May 25, 2019 @ 2:19am 
its fine Maniir
Jim Halpert May 24, 2019 @ 4:44pm 
Really cool system! I used a modified version of your radar for a radar and sonar on my new ship. I will include credit for you and a link to this project. If you would like me to not use it in my project, let me know and I can remove it. Thanks!
ketrab2004  [author] May 21, 2019 @ 2:17pm 
Linex adding a minimum distance wont make it see through your ship so i think the best thing you can do is put it higher or put it underwater on the bottom so nothing is in the way
Linex May 21, 2019 @ 2:14pm 
very nice. could you add a adjustable minimum distance becouse it detects things onboard my boat
:)
Vulonkiin May 21, 2019 @ 1:54pm 
I think this may be better then the one I made :( time for me to do better.
good job mate.