Esempio n. 1
0
        public double GetMilesPerGallon(int mph, double massAirflow)
        {
            //only calculate if supported
            if (mph == UnsupportedPidValue || massAirflow == UnsupportedPidValue)
            {
                return(UnsupportedPidValue);
            }

            return(ObdHelpers.GetMilesPerGallon(mph, massAirflow));
        }
Esempio n. 2
0
 public int GetMilesPerHour(int kph)
 {
     return(kph == UnsupportedPidValue ? UnsupportedPidValue : ObdHelpers.KilometersPerHourToMilesPerHour(kph));
 }