         else if (recvByte == ackVal) {
             Serial.println(F("Heartbeat byte received"));
 
-            // TODO: Stop using 9 as the hard-coded altitude
-            float altitude = 9;
+            float altitude = getAltitude();
 
             byte packetData[sizeof(float) + 1] = { heightInitialVal };
             float* packetFloatPortion = (float*)&packetData[1];


#else

// Servo controller
#include <Servo.h>


#define ROLE_SKY 1

// SET THE TARGET ROLE HERE -------------------------------
#define ROLE ROLE_SKY

// Standard libraries
#include <Arduino.h>
