Stormworks: Build and Rescue

Stormworks: Build and Rescue

82 个评价
Radar Controller
   
奖励
收藏
已收藏
取消收藏
Vehicles: Creative
标签: v1.3.4
文件大小
发表于
更新日期
38.776 KB
2019 年 5 月 23 日 上午 7:11
2021 年 10 月 9 日 上午 1:39
8 项改动说明 ( 查看 )

订阅以下载
Radar Controller

描述
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 条留言
Jojo 6 月 30 日 上午 11:59 
oh wait nvm
Jojo 6 月 30 日 上午 11:57 
17*
willzwix1 2024 年 4 月 8 日 下午 5:29 
fun fact: in the description, he said "radar" 16 times.















im bored, ok?
ova578 2022 年 1 月 4 日 上午 10:20 
i cant get it to work with the new radars either
sengir_vampire  [作者] 2021 年 12 月 17 日 下午 12:32 
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 2021 年 12 月 17 日 上午 11:51 
if i use the normal radar can i still use the laser sensor?
xlxPlykxlx 2021 年 10 月 9 日 下午 4:38 
I'm still not understanding this properly with the new radars. I could use some help if you have the time.
sengir_vampire  [作者] 2021 年 10 月 9 日 上午 1:43 
I just added a quickfix for the new radar dishes. Please read the description on how to setup the new radar.
Echoless 2021 年 10 月 8 日 下午 8:26 
is this going to be updated for the new radars?
sengir_vampire  [作者] 2021 年 5 月 9 日 上午 6:29 
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.