Reserved for later use?
if(flags & OutGaugeResponse.OG_BAR != 0){
//stuff to do if pressure is in bar
}
if((flags & OutGaugeResponse.DL_FULLBEAM) != 0)
System.out.print("FULLBEAM ");
if((flags & OutGaugeResponse.DL_ABS) != 0)
System.out.print("ABS ");
if((flags & OutGaugeResponse.DL_BATTERY) != 0)
System.out.print("BATTERY ");
if((flags & OutGaugeResponse.DL_HANDBRAKE) != 0)
System.out.print("HANDBRAKE ");
if((flags & OutGaugeResponse.DL_NUM) != 0)
System.out.print("NUM ");
if((flags & OutGaugeResponse.DL_OILWARN) != 0)
System.out.print("OIL ");
if((flags & OutGaugeResponse.DL_PITSPEED) != 0)
System.out.print("PIT ");
if((flags & OutGaugeResponse.DL_SHIFT) != 0)
System.out.print("SHIFT ");
if((flags & OutGaugeResponse.DL_SIGNAL_ANY) != 0)
System.out.print("SIGNALANY ");
if((flags & OutGaugeResponse.DL_SIGNAL_L) != 0)
System.out.print("SIGNALL ");
if((flags & OutGaugeResponse.DL_TC) != 0)
System.out.print("TC");
System.out.println("");
struct OutGaugePack
{
unsigned Time; // time in milliseconds (to check order)
char Car[4]; // Car name
word Flags; // OG_FLAGS (see below)
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 OilPress; // BAR
float OilTemp; // C
float Spare2;
float Spare3;
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
};
#define OG_SHIFTLIGHT 1
#define OG_FULLBEAM 2
#define OG_HANDBRAKE 4
#define OG_PITSPEED 8
#define OG_TC 16
#define OG_HEADLIGHTS 32
#define OG_SIGNAL_L 64
#define OG_SIGNAL_R 128
#define OG_REDLINE 256
#define OG_OILWARN 512
#define OG_BATTERY 1024
#define OG_ABS 2048
#define OG_3 4096
#define OG_4 8192
#define OG_KM 16384
#define OG_BAR 32768
if((flags & OutGaugeResponse.DL_FULLBEAM) != 0)
System.out.print("FULLBEAM ");
if((flags & OutGaugeResponse.OG_ABS) != 0)
System.out.print("ABS ");
if((flags & OutGaugeResponse.OG_BATTERY) != 0)
System.out.print("BATTERY ");
if((flags & OutGaugeResponse.OG_HANDBRAKE) != 0)
System.out.print("HANDBRAKE ");
if((flags & OutGaugeResponse.OG_OILWARN) != 0)
System.out.print("OIL ");
if((flags & OutGaugeResponse.OG_PITSPEED) != 0)
System.out.print("PIT ");
if((flags & OutGaugeResponse.OG_SHIFTLIGHT) != 0)
System.out.print("SHIFT ");
if((flags & OutGaugeResponse.OG_SIGNAL_L) != 0)
System.out.print("SIGNALL ");
if((flags & OutGaugeResponse.OG_SIGNAL_R) != 0)
System.out.print("SIGNALR ");
if((flags & OutGaugeResponse.OG_TC) != 0)
System.out.print("TC");
System.out.println("");
static public final int OG_TURBO = 8192; // show turbo gauge
static public final int OG_KM = 16384; // if not set - user prefers MILES
static public final int OG_BAR = 32768; // if not set - user prefers PSI
static public final int DL_SHIFT = 0;
static public final int DL_FULLBEAM = 1;
static public final int DL_HANDBRAKE = 2;
static public final int DL_PITSPEED = 3;
static public final int DL_TC = 4;
static public final int DL_SIGNAL_L = 5;
static public final int DL_SIGNAL_R = 6;
static public final int DL_SIGNAL_ANY = 7;
static public final int DL_OILWARN = 8;
static public final int DL_BATTERY = 9;
static public final int DL_ABS = 10;
static public final int DL_SHIFT = 1;
static public final int DL_FULLBEAM = 2;
static public final int DL_HANDBRAKE = 4;
static public final int DL_PITSPEED = 8;
static public final int DL_TC = 16;
static public final int DL_SIGNAL_L = 32;
static public final int DL_SIGNAL_R = 64;
static public final int DL_SIGNAL_ANY = 128;
static public final int DL_OILWARN = 256;
static public final int DL_BATTERY = 512;
static public final int DL_ABS = 1024;
static public final int DL_SPARE = 2048;
static public final int DL_NUM = 4096;
static public final short ISS_SHIFTU_HIGH = 16; // HIGH view
static public final int OG_SHIFT = 1;
static public final int OG_CTRL = 2;