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