Stormworks: Build and Rescue

Stormworks: Build and Rescue

Оценок: 82
Radar Controller
   
Наградить
В избранное
В избранном
Удалить
Vehicles: Creative
Метки: v1.3.4
Размер файла
Добавлен
Изменён
38.776 KB
23 мая. 2019 г. в 7:11
9 окт. 2021 г. в 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 30 июн в 11:59 
oh wait nvm
Jojo 30 июн в 11:57 
17*
willzwix1 8 апр. 2024 г. в 17:29 
fun fact: in the description, he said "radar" 16 times.















im bored, ok?
ova578 4 янв. 2022 г. в 10:20 
i cant get it to work with the new radars either
sengir_vampire  [создатель] 17 дек. 2021 г. в 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 17 дек. 2021 г. в 11:51 
if i use the normal radar can i still use the laser sensor?
xlxPlykxlx 9 окт. 2021 г. в 16:38 
I'm still not understanding this properly with the new radars. I could use some help if you have the time.
sengir_vampire  [создатель] 9 окт. 2021 г. в 1:43 
I just added a quickfix for the new radar dishes. Please read the description on how to setup the new radar.
Echoless 8 окт. 2021 г. в 20:26 
is this going to be updated for the new radars?
sengir_vampire  [создатель] 9 мая. 2021 г. в 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.