 float rawCalibrationAltitude = 0;
 bool isAltCalibrated = false;
 float lastAltitude = -1;
+float rawLastAltitude = -1;
 
 #else
 #define TRIGGER_SERVO_ANGLE 90
 #define RESET_SERVO_ANGLE 0
-#define METERS_TO_FEET_RATIO (381./1250.)
+#define METERS_TO_FEET_RATIO (1250./381.)
 
 // Should be a PWM pin
 uint8_t servoPin = 5;

        validateAck(sendByte(ackVal));
    }

    bool altitudeAboveThreshold = isAltCalibrated && lastAltitude >= ALTITUDE_TARGET_THRESH_FEET;
    if (isCommHealthy && altitudeAboveThreshold)
        setStatusLED(0, 0, 255);

    else if (isCommHealthy)
        setStatusLED(0, 255, 0);

    else
        setStatusLED(255, 0, 0);
#else
    if (radio.available()) {
        byte recvByte = receiveByte();

            receiveData(&buffer, sizeof(buffer));

            // Dereference the data portion of the packet as a float
            rawLastAltitude = *(float*)(&(buffer[1]));
            if (isAltCalibrated)
                lastAltitude = rawLastAltitude - rawCalibrationAltitude;
            else
                lastAltitude = rawLastAltitude;

            Serial.println("Got altitude " + String(lastAltitude));
        }
