Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
AIS
   
奖励
收藏
已收藏
取消收藏
Microcontrollers: Navigation, Microcontroller
标签: v0.9.7
文件大小
发表于
更新日期
46.199 KB
2019 年 5 月 21 日 上午 9:55
2019 年 10 月 29 日 上午 7:31
3 项改动说明 ( 查看 )
描述
This microcontroller is an AIS System that works with just one antenna and only uses one frequency to receive and send data (while blocking frequency 0 all the time as an off channel).
Although smaller antennas would work too, it is higly recommended to use the Radio RX Huge antenna as it has the biggest range.

If you find any bugs, post into the comments please.

Info: There is also a flattened version for AI ships now.

Please note:

Please see this system as unfinished.

I wasn't able to squeeze text into a one tick transmission (you still can see my poor attempts in the code) so sending out ship names doesn't work for now.
Also the IMO Number (that's the unique number that identifies ships) for your ship won't be transmitted correct if too long. The official standard for IMO Numbers is a 7 digit number prefixed by the acronym IMO. That's what i tried to implement, but as mentioned above, i haven't managed to squeeze a lot of data into a single tick, so for now you should stick to very low numbers.

Also note:
This is one of three parts that form a Ship Tracking System i created. That will show you the ships around you, fitted with this system on a live map.

If you want to use that system, these are the links:
zoomable map
Tracking System

But i recommend to use the
zoomoveable map
Tracking System V2
instead. Detailed setup information in the description of the Tracking System V2.

What this microcontroller does
  • You have 5 properties you can set
    1. IMO Number (will be cut if longer that 7 and be random if not set at all, so just give it a low unique number
    2. Ship Name (you can put something into there, but for now it's won't have an effect, also please keep the text short you put in there)
    3. Ship Length (length of your ship in blocks)
    4. Ship Width (length of your ship in blocks)
    5. Ship Type (select what fits to your ship, the most common ship types are supported)

  • How does it send something?
    The system is based on timeslots. If a ship fitted with this system won't move, it sends out data every 180 ticks. If it moves faster than 3 knots, it will send out data every 60 ticks. It will send data on frequency 161. This will block the antennas for sending on that frequency of all other ships for 1 tick. To avoid this happening too much, it will randomly wait a tick longer before sending data.
    While not sending any data (means 59 ticks or 179 ticks) the system will receive on frequency 161 and directly send out the data it received via composite.
    It will however switch to frequency 0 as sending channel while not sending on frequency 161. So if you already use frequency 0 for something you'll have to change that.

  • What does it send?
    Well nearly everything you need
    1. IMO Number
    2. Ship Name
    3. Ship Type
    4. Length
    5. Width
    6. GPSx
    7. GPSy
    8. Speed
    9. Heading
    To make it function properly you will of course have to attach all needed sensors, like GPS Sensors, Linear Speed Sensor and the Compass Sensors. Heading will already be correct as it uses this: "((-compass*360)+360)%360"

  • Is it multiplayer safe?
    I don't know to be honest, cause i haven't tested that. I have tested it in single player mode with two ships and it's working fine. Hope to test it with more ships soon.

  • What are the video outputs for?
    That are debug outputs which will show you information about the data you receive currently and the data you will send out.
46 条留言
lunatigs  [作者] 2023 年 2 月 10 日 上午 4:06 
@Mewo The max antenna range is actually 20 km not 50 km. Sorry for that.
~WiFiCatGirl~ 2023 年 2 月 10 日 上午 12:16 
Thank you for elaborating! I may use it in my creations.
lunatigs  [作者] 2023 年 2 月 9 日 下午 11:40 
@Mewo The principle is, like with AIS in the real world too, that every vehicle, this system is attached to, will send data around (in case of this game up to 50 km as that's the max range of the biggest antenna) and every vehicle, with this system attached to, can detect that data (within that range).

Means for as long as you attach this system to every vehicle you're playing with (keep active block presupposed), those vehicles will send around their data for as long as they have any battery left. And for as long as the vehicle you're using is in range it will be able to detect it.

I never got any feedback up to which amount of vehicles this system actually works, but from my own tests i can say that 5-6 vehicles are no problem at all, even on slower computers.
~WiFiCatGirl~ 2023 年 2 月 9 日 下午 5:06 
So it just tracks vehicles?
Honestly sounds like an understatement, losing boats or crashed helicopters seem to be an issue for me!
lunatigs  [作者] 2023 年 2 月 9 日 上午 5:17 
@Mewo That's pretty much what it does. The tracking system i made is there to visualize everything. This controller alone won't help you much, it's part of a bigger system. See the tracking system page for more information.
~WiFiCatGirl~ 2023 年 2 月 9 日 上午 2:52 
May I ask what this is? Or does it just send data between antennas?
Lunatic Lacewing 2023 年 1 月 11 日 上午 6:44 
Ok thanks
lunatigs  [作者] 2023 年 1 月 10 日 上午 9:27 
@The_Jo_Universe In the description of the Tracking System i wrote a step by step instruction how to wire everything up. There you should find what you need.
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2027281243
Lunatic Lacewing 2023 年 1 月 10 日 上午 8:56 
what should i connect the composites to?
lunatigs  [作者] 2023 年 1 月 7 日 上午 4:28 
@The_Jo_Universe For me it will stay a search and rescue game, so it won't happen that i add warships.