Right, I've quickly coded up this OutGuage system by duplicating OutSim and changing it. It's needed for anyone who wants to make an external dashboard. I have tried to include all the info you would want on the dash. Please let me know if anything's missing.
It works like OutSim, you can start it with the cfg.txt or by sending an InSim packet. Then the viewed car will send the following information in a UDP packet, at the specified rate.
It works like OutSim, you can start it with the cfg.txt or by sending an InSim packet. Then the viewed car will send the following information in a UDP packet, at the specified rate.
#define OG_KM 1
#define OG_BAR 2
#define OG_SHIFT 4
#define OG_HANDBRAKE 8
#define OG_TC 16
#define OG_REDLINE 32
#define OG_PITSPEED 64
struct OutGuagePack
{
unsigned Time;
char Car[4]; // Car name
word Flags; // Combination of OG_FLAGS
byte Gear; // Reverse:0, Neutral:1, First:2...
byte SpareB;
float Speed; // M/S
float RPM; // RPM
float Turbo; // BAR
float EngTemp; // C
float Fuel; // 0 to 1
float Spare1;
float Spare2;
float Throttle; // 0 to 1
float Brake; // 0 to 1
float Clutch; // 0 to 1
char Display1[16]; // Usually Fuel
char Display2[16]; // Usually Settings
int ID; // if GameID is specified
};