InSim
0.6c
Documentation of Live for Speed InSim Protocol
|
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) |
16 bytes : one car in a contact - two of these in the IS_CON
Definition at line 2059 of file ispackets.h.
char CarContact::AccelF |
m/s^2 longitudinal acceleration (forward positive)
Definition at line 2073 of file ispackets.h.
char CarContact::AccelR |
m/s^2 lateral acceleration (right positive)
Definition at line 2074 of file ispackets.h.
byte CarContact::CluHan |
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.
byte CarContact::GearSp |
high 4 bits : gear (15=R) / low 4 bits : spare
Definition at line 2068 of file ispackets.h.
byte CarContact::Heading |
direction of forward axis : 0 = world y direction, 128 = 180 deg
Definition at line 2072 of file ispackets.h.
byte CarContact::Info |
like Info byte in CompCar (CCI_BLUE / CCI_YELLOW / CCI_LAG)
Definition at line 2062 of file ispackets.h.
byte CarContact::PLID |
Definition at line 2061 of file ispackets.h.
byte CarContact::Sp2 |
spare
Definition at line 2063 of file ispackets.h.
byte CarContact::Speed |
m/s
Definition at line 2069 of file ispackets.h.
char CarContact::Steer |
front wheel steer in degrees (right positive)
Definition at line 2064 of file ispackets.h.
byte CarContact::ThrBrk |
high 4 bits : throttle / low 4 bits : brake (0 to 15)
Definition at line 2066 of file ispackets.h.
short CarContact::X |
position (1 metre = 16)
Definition at line 2076 of file ispackets.h.
short CarContact::Y |
position (1 metre = 16)
Definition at line 2077 of file ispackets.h.