Ejemplo n.º 1
0
        public int GetMilesPerHour(int kph)
        {
            if (kph == UnsupportedPidValue)
            {
                return(UnsupportedPidValue);
            }

            return(ObdHelpers.KilometersPerHourToMilesPerHour(kph));
        }
Ejemplo n.º 2
0
        public double GetMilesPerGallon(int mph, double massAirflow)
        {
            //only calculate if supported
            if (mph == UnsupportedPidValue || massAirflow == UnsupportedPidValue)
            {
                return(UnsupportedPidValue);
            }

            return(ObdHelpers.GetMilesPerGallon(mph, massAirflow));
        }