예제 #1
0
 public static Altimeter AltitudeFromPressure(Altimeter altimeter)
 {
     if (altimeter.qnh == 0f)
     {
         altimeter.qnh = STANDARD_PRESSURE;
     }
     altimeter.altitude = AltitudeFromPressure(altimeter.pressure, altimeter.qnh);
     return(altimeter);
 }
예제 #2
0
 static Altimeter PressureFromAltitude(Altimeter altimeter)
 {
     if (altimeter.qnh == 0f)
     {
         altimeter.qnh = STANDARD_PRESSURE;
     }
     altimeter.pressure = PressureFromAltitude(altimeter.altitude, altimeter.qnh);
     return(altimeter);
 }
예제 #3
0
        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);
        }