Difference between revisions of "IS CON"

From LFS Manual
Jump to navigationJump to search
(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 |...")
 
m
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
  
The '''CON'''tact packet is sent by LFS when 2 cars come into contact.
+
The '''CON'''tact packet is sent by LFS when 2 cars come into contact. This packet is only sent if ISF_CON is set in [[IS_ISI]].
  
 
{| class="wikitable"
 
{| class="wikitable"

Latest revision as of 14:46, 10 February 2026

Introduction

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.

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.