float TinyGPS::f_speed_kmph() { #ifdef __TEST__ __speed = __speed + 0.1; return __speed; #endif float sk = f_speed_knots(); return sk == GPS_INVALID_F_SPEED ? GPS_INVALID_F_SPEED : _GPS_KMPH_PER_KNOT * sk; }
float TinyGPS::f_speed_kmph() { float sk = f_speed_knots(); return sk == GPS_INVALID_F_SPEED ? GPS_INVALID_F_SPEED : _GPS_KMPH_PER_KNOT * sk; }
float Gps::f_speed_mps() { float sk = f_speed_knots(); return sk == GPS_INVALID_F_SPEED ? GPS_INVALID_F_SPEED : _GPS_MPS_PER_KNOT * f_speed_knots(); }
float CopTinyGps::f_speed_mph() { float sk = f_speed_knots(); return sk == GPS_INVALID_F_SPEED ? GPS_INVALID_F_SPEED : _GPS_MPH_PER_KNOT * sk; }