     if (bmp.begin())
     {
         bmpConnected = true;
-        Serial.print(F("BMP085 connection succeeded"));
+        Serial.println(F("BMP085 connection succeeded"));
     }
     else
-        Serial.print(F("BMP085 connection failed"));
-
-#endif
-}
-
-
-
-#if ROLE == ROLE_SKY
+        Serial.println(F("BMP085 connection failed"));
+
+#endif
+}
+
+
+
+#if ROLE == ROLE_GROUND
+void setStatusLED(int r, int g, int b) {
+    analogWrite(heartbeatLEDRedPin, r);
+    analogWrite(heartbeatLEDGreenPin, g);
+    analogWrite(heartbeatLEDBluePin, b);
+}
+#else
 float getAltitude() {
     if (bmpConnected) {
         sensors_event_t event;


#if ROLE == ROLE_GROUND

// Display
#include <LiquidCrystal.h>

// Smart switch utils
#include "~Switch.h"



#if ROLE == ROLE_GROUND
#define HEARTBEAT_INTERVAL_MILLIS 1000
// Altitude is in feet
#define ALTITUDE_TARGET_THRESH_FEET 100

// can be digital pinsa
uint8_t triggerButtonPin = A0;
uint8_t resetButtonPin = A1;
uint8_t calibButtonPin = A1;

Switch triggerButton = Switch(triggerButtonPin);
Switch resetButton = Switch(resetButtonPin);
Switch calibButton = Switch(calibButtonPin);

// can be digital pins
uint8_t heartbeatLEDGreenPin = 5;
uint8_t heartbeatLEDBluePin = 3;
uint8_t heartbeatLEDRedPin = 6;

unsigned long lastHeartbeat = 0;
bool isCommHealthy = false;

float rawCalibrationAltitude = 0;
bool isAltCalibrated = false;
float lastAltitude = -1;

#else
#define TRIGGER_SERVO_ANGLE 90
#define RESET_SERVO_ANGLE 0
#define METERS_TO_FEET_RATIO (381./1250.)

// Should be a PWM pin
uint8_t servoPin = 5;
Servo actuationServo;

// Parameter is sensor ID
Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
