IS CON
From LFS Manual
Jump to navigationJump to searchIntroduction
The CONtact packet is sent by LFS when 2 cars come into contact. This packet is only sent if ISF_CON is set in IS_ISI.
| Type | Name | Description |
|---|---|---|
| byte | Size | 44 |
| byte | Type | ISP_CON |
| byte | ReqI | 0 |
| byte | Zero | |
| word | SpClose | high 4 bits: reserved / low 12 bits: closing speed (10 = 1 m/s) |
| word | SpW | |
| unsigned | Time | time stamp |
| CarContact | A | |
| CarContact | B |
Packet Details
Size
The size of the packet is always 44 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_CON.
ReqI
ReqI is always equal to zero.
SpClose
Only the 12 lower bits are used to encode the closing speed, where a value of 10 corresponds to 1 m/s.
Time
The timestamp of the contact.
A
First CarContact.
B
Second CarContact.