IS CON

From LFS Manual
Revision as of 14:45, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''CON'''tact packet is sent by LFS when 2 cars come into contact. {| class="wikitable" |+ IS_CON packet properties |- ! Type !! Name !! Description |...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to navigationJump to search

Introduction

The CONtact packet is sent by LFS when 2 cars come into contact.

IS_CON packet properties
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.