public static Altimeter AltitudeFromPressure(Altimeter altimeter) { if (altimeter.qnh == 0f) { altimeter.qnh = STANDARD_PRESSURE; } altimeter.altitude = AltitudeFromPressure(altimeter.pressure, altimeter.qnh); return(altimeter); }
static Altimeter PressureFromAltitude(Altimeter altimeter) { if (altimeter.qnh == 0f) { altimeter.qnh = STANDARD_PRESSURE; } altimeter.pressure = PressureFromAltitude(altimeter.altitude, altimeter.qnh); return(altimeter); }
public override bool Equals(IRosMessage ____other) { if (____other == null) { return(false); } bool ret = true; Altimeter other = (Altimeter)____other; ret &= header == other.header; ret &= altitude == other.altitude; ret &= pressure == other.pressure; ret &= qnh == other.qnh; return(ret); }