InSim  0.6c
Documentation of Live for Speed InSim Protocol
Data Fields
CarContact Struct Reference

16 bytes : one car in a contact - two of these in the IS_CON More...

#include <ispackets.h>

Data Fields

byte PLID
byte Info
 like Info byte in CompCar (CCI_BLUE / CCI_YELLOW / CCI_LAG)
byte Sp2
 spare
char Steer
 front wheel steer in degrees (right positive)
byte ThrBrk
 high 4 bits : throttle / low 4 bits : brake (0 to 15)
byte CluHan
 high 4 bits : clutch / low 4 bits : handbrake (0 to 15)
byte GearSp
 high 4 bits : gear (15=R) / low 4 bits : spare
byte Speed
 m/s
byte Direction
 car's motion if Speed > 0 : 0 = world y direction, 128 = 180 deg
byte Heading
 direction of forward axis : 0 = world y direction, 128 = 180 deg
char AccelF
 m/s^2 longitudinal acceleration (forward positive)
char AccelR
 m/s^2 lateral acceleration (right positive)
short X
 position (1 metre = 16)
short Y
 position (1 metre = 16)

Detailed Description

16 bytes : one car in a contact - two of these in the IS_CON

Definition at line 2059 of file ispackets.h.


Field Documentation

m/s^2 longitudinal acceleration (forward positive)

Definition at line 2073 of file ispackets.h.

m/s^2 lateral acceleration (right positive)

Definition at line 2074 of file ispackets.h.

high 4 bits : clutch / low 4 bits : handbrake (0 to 15)

Definition at line 2067 of file ispackets.h.

car's motion if Speed > 0 : 0 = world y direction, 128 = 180 deg

Definition at line 2071 of file ispackets.h.

high 4 bits : gear (15=R) / low 4 bits : spare

Definition at line 2068 of file ispackets.h.

direction of forward axis : 0 = world y direction, 128 = 180 deg

Definition at line 2072 of file ispackets.h.

like Info byte in CompCar (CCI_BLUE / CCI_YELLOW / CCI_LAG)

Definition at line 2062 of file ispackets.h.

Definition at line 2061 of file ispackets.h.

spare

Definition at line 2063 of file ispackets.h.

m/s

Definition at line 2069 of file ispackets.h.

front wheel steer in degrees (right positive)

Definition at line 2064 of file ispackets.h.

high 4 bits : throttle / low 4 bits : brake (0 to 15)

Definition at line 2066 of file ispackets.h.

position (1 metre = 16)

Definition at line 2076 of file ispackets.h.

position (1 metre = 16)

Definition at line 2077 of file ispackets.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Variables Enumerator Defines