Stormworks: Build and Rescue

Stormworks: Build and Rescue

115 个评价
[Obselete]Locking/Tracking Radar
3
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
294.364 KB
2021 年 1 月 22 日 上午 4:16
2021 年 9 月 19 日 上午 1:01
5 项改动说明 ( 查看 )

订阅以下载
[Obselete]Locking/Tracking Radar

描述
Obselete because of new radars
New: (but different) system: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2618768322


Tracking Radar for HUD/Display
This radar allow you to search object with a field of view of 360° or tracking one target in front of your vehicle.
The tracking mode will tell you the distance, the relative speed and an estimated mass of the target.


How to use ?
Blocks
Required:
  • Small / Large HUD / Any size display
  • 2 Radars (1 vertical, 1 horizontal)
  • 1 Small Display
Optional:
  • Buzzer
  • Power Relay
Nodes
  • H/V Distance -> Connect to the radars distance
  • H Pitch -> Connect to the horizontal radar elevation
  • H/V FOV-> Connect to the radars FOV
  • Yaw -> Connect to the horizontal radar rotation
  • Pitch -> Connect to the vertical radar rotation
  • Video passthrough -> Optional video for the HUD (IR camera / Artificial horizon etc...)
  • HUD -> Connect to the HUD
  • Small Display (Video / Composite) -> Connect to/from the small Display
  • On/Off -> Set on to enable scripts
  • Buzzer -> Connect to a buzzer if you want sound when clicking on the display
  • DEBUG -> Ignore, it's a dev tool to print some data or print error logs.
  • Raw Data -> data used by the display lua (See more information below)



Configurations (Properties)
You can select 4 range for the radar display.

You can change the display and hud color theme with R/G/B properties. You can also change the size of the tracking rectangle.

Increase 'HUD scale' if the tracking rectangle is closer from the center of the HUD than the target and decrease it if it's to far. It's possible to set negative value if one of the radar are inverted.
You can also translate the tracking rectangle if it's always under, above, to the left or to the right. (For exemple, if your radar is below the HUD, you should set a negative value like -5).

You can set the duration for the search radar to do one rotation and change the FOV of the tracking mode.

You can ignore some estimated range of mass to prevend detecting sharks, players etc...
(Player is less than 25kg, sharks between 0.5T and 1.3T, crates around 0.4 and megalodon around 60T)



Notes
Depending on the orientation of the radar, you may have to inverte their elevation.

You can replace the 2 radar with a large radar. The nodes should be connected live this :
Radar's Azimuth Angle -> MC's Pitch V
MC's Yaw -> Radar's Facing Yaw
MC's FOV H -> Radar's FOV
Radar's Distance -> Both Distance

Example on a jet :
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2344811557



Composite Raw Data
Booleans:
1) Button Range pressed
2) Button Lock pressed

NEED API UPDATE
3) Enable
4) Lock Mode
30) Lock changed
31) Range changed

Numbers:
1) Screen Q click X
2) Screen Q click Y
3) Screen E click X
4) Screen E click Y
5) Vertical radar distance
6) Horizontal radar distance
7) Vertical radar elevation
8) Horizontal radar elevation
11-15) Echos Distance*
16-20) Echos color alpha*
21-25) Echos Yaw*
27) Average distance (or 0 if mass ignored)
28) Average strength (or 0 if mass ignored)
29) Current range
30) Yaw (horizontal radar)
31) Horizontal radar FOV
32) Vertical radar FOV

* Up to 5 echos are stored. The echos are not stored in order so any cell can be empty (values = 0)
热门讨论 查看全部(1)
0
2021 年 1 月 22 日 上午 5:41
Bug Report
puipuix
62 条留言
puipuix  [作者] 2024 年 6 月 12 日 下午 12:20 
Vehicle
johnyboy 2024 年 5 月 4 日 上午 9:23 
is it a vehicle or a controller?
brewlord 2022 年 10 月 27 日 上午 2:47 
An aircraft I have this in still track perfectly, even as new radars are out
Herze 2021 年 10 月 25 日 上午 6:56 
This is such a cool system, it's sad the new radars can't do the same thing
puipuix  [作者] 2021 年 10 月 12 日 上午 11:27 
I made an other one but without the locking feature (as I we can't control the radar FOV/Angles) https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2621909828
I may create a tracking display as I'm doing something similar for my master/slave turret system
BasicallyIPlayGames 2021 年 10 月 12 日 上午 11:02 
Yeah but are you going to bother making another one?
puipuix  [作者] 2021 年 10 月 12 日 上午 9:50 
This will no longer be updated as obselete
KageKage 2021 年 10 月 12 日 上午 9:30 
Hello, could you add a logic input for target locking with a button or from the pilot seat?
BasicallyIPlayGames 2021 年 10 月 8 日 上午 10:13 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
Lillythefox21283 2021 年 9 月 27 日 下午 12:25 
could you make this command a turret of sorts?