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