Stormworks: Build and Rescue

Stormworks: Build and Rescue

47 个评价
Long Range/Laser Lua Radar/Lidar Controller
   
奖励
收藏
已收藏
取消收藏
Vehicles: Mechanical
标签: v0.7.6
文件大小
发表于
更新日期
41.044 KB
2019 年 5 月 24 日 下午 2:07
2019 年 5 月 25 日 上午 8:49
2 项改动说明 ( 查看 )

订阅以下载
Long Range/Laser Lua Radar/Lidar Controller

描述
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
15 条留言
HyperSaurus 2024 年 9 月 27 日 下午 7:21 
Kronus, instead of using the output on the big velocity pivots, just use a forwards facing compass sensor connected to the lidar, it should work the same EXCEPT for the lidar is now facing relative to north, rather than your boat, which can be easy to fix if it really a problem, (just place a second compass on the base of your boat, and subtract the one on the lidar as "A", and the other as "B") because now the lidar will be facing correct relative to maps. I know this comment is two years late, but maybe it'll help someone.
Kronus 2022 年 4 月 18 日 上午 8:03 
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 2022 年 4 月 13 日 上午 11:39 
i'm having the same problem as Kahrstrom :steamsad:
Green Goose 2021 年 10 月 13 日 上午 8:13 
It was the pivot that was the problem, it was the wrong way around
ketrab2004  [作者] 2021 年 10 月 5 日 上午 11:23 
is it not mirrored when you connect other microcontrollers?
Green Goose 2021 年 10 月 5 日 上午 11:19 
The monitor is the right way round though
ketrab2004  [作者] 2021 年 10 月 5 日 上午 9:01 
that happens when the screen is mirrored, remove it and try placing it again
Green Goose 2021 年 10 月 5 日 上午 6:04 
The image is mirrored for some reason
Kahrstrom 2020 年 1 月 7 日 下午 1:25 
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__ 2019 年 10 月 1 日 上午 11:13 
thank you!