protected override void communicate_main() { serialWrite((char)0x01 + "1" + Boost.ToString("X3") + (char)0x02 + "1" + Tacho.ToString("X3") + (char)0x03 + "1" + Oil_Pres.ToString("X3") + (char)0x04 + "1" + Fuel_Pres.ToString("X3") + (char)0x05 + "1" + Ext_Temp.ToString("X3") + (char)0x07 + "1" + Oil_Temp.ToString("X3") + (char)0x0f + "1" + Water_Temp.ToString("X3")); Thread.Sleep(14); }
protected override void communicate_main() { serialWriteLine("T" + Tacho.ToString()); serialWriteLine("S" + Speed.ToString()); serialWriteLine("A" + Boost.ToString()); serialWriteLine("B" + Water_Temp.ToString()); serialWriteLine("C" + Oil_Temp.ToString()); serialWriteLine("D" + Oil_Temp2.ToString()); serialWriteLine("E" + Oil_Pres.ToString()); serialWriteLine("F" + Fuel_Pres.ToString()); Thread.Sleep(14); }