Beispiel #1
0
        private static ObdStandard OBDStandard(string[] data)
        {
            var binary = HexHelper.HexStringToBinary(data[0]);

            return((ObdStandard)Convert.ToInt32(binary.Substring(0, 8), 2));
        }
Beispiel #2
0
 private static object AuxilaryInputStatus(string[] data)
 {
     return(new { PowerTakeOff = HexHelper.HexStringToBinary(data[0])[0] == '1' });
 }
Beispiel #3
0
        private static SecondaryAirStatus CommandedSecondaryAirStatus(string[] data)
        {
            var binary = HexHelper.HexStringToBinary(data[0]);

            return((SecondaryAirStatus)Convert.ToInt32(binary.Substring(0, 4), 2));
        }