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 2042 of file ispackets.h.


Field Documentation

Definition at line 2044 of file ispackets.h.

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

Definition at line 2045 of file ispackets.h.

spare

Definition at line 2046 of file ispackets.h.

front wheel steer in degrees (right positive)

Definition at line 2047 of file ispackets.h.

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

Definition at line 2049 of file ispackets.h.

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

Definition at line 2050 of file ispackets.h.

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

Definition at line 2051 of file ispackets.h.

m/s

Definition at line 2052 of file ispackets.h.

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

Definition at line 2054 of file ispackets.h.

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

Definition at line 2055 of file ispackets.h.

m/s^2 longitudinal acceleration (forward positive)

Definition at line 2056 of file ispackets.h.

m/s^2 lateral acceleration (right positive)

Definition at line 2057 of file ispackets.h.

position (1 metre = 16)

Definition at line 2059 of file ispackets.h.

position (1 metre = 16)

Definition at line 2060 of file ispackets.h.


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