Hi,
I'm currently coding an OutGauge packet receiver for my Android phone in Java.
I have hit a problem where I don't know the size of the buffer in bytes for the datagram.
What's the size of the OG packet for the buffer? More importantly, how is it calculated from such detail:
I'm currently coding an OutGauge packet receiver for my Android phone in Java.
I have hit a problem where I don't know the size of the buffer in bytes for the datagram.
What's the size of the OG packet for the buffer? More importantly, how is it calculated from such detail:
<?php
struct OutGaugePack
{
unsigned Time; // time in milliseconds (to check order)
char Car[4]; // Car name
word Flags; // Info (see OG_x below)
byte Gear; // Reverse:0, Neutral:1, First:2...
byte PLID; // Unique ID of viewed player (0 = none)
float Speed; // M/S
float RPM; // RPM
float Turbo; // BAR
float EngTemp; // C
float Fuel; // 0 to 1
float OilPressure; // BAR
float OilTemp; // C
unsigned DashLights; // Dash lights available (see DL_x below)
unsigned ShowLights; // Dash lights currently switched on
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; // optional - only if OutGauge ID is specified
};
?>