#include "Bmp180.h"

namespace rcr {
namespace level1payload {

Bmp180::Bmp180(void) {
  // Start the BMP-180. Trap the thread if no sensor is found.
  if (!bmp_.begin()) {
    Serial.println("No BMP sensor found. Program will not proceed.");
    while (1) { /* Trap the thread. */ }
  }
}

float Bmp180::temperature(void) {
  return bmp_.readTemperature();
}

int32_t Bmp180::ambient_pressure(void) {
  return bmp_.readPressure();
}

float Bmp180::pressure_altitude(void) {
  // Use default altimeter setting, 
  // sealevelPressure = 101325 Pascals (std. atmosphere)
  return bmp_.readAltitude();
}

} // namespace level1_payload
} // namespace rcr

#include "Bmp180.h"



--- 
+++ 
@@ -1,3 +1,29 @@
 #include "Bmp180.h"
 
+namespace rcr {
+namespace level1payload {
 
+Bmp180::Bmp180(void) {
+  // Start the BMP-180. Trap the thread if no sensor is found.
+  if (!bmp_.begin()) {
+    Serial.println("No BMP sensor found. Program will not proceed.");
+    while (1) { /* Trap the thread. */ }
+  }
+}
+
+float Bmp180::temperature(void) {
+  return bmp_.readTemperature();
+}
+
+int32_t Bmp180::ambient_pressure(void) {
+  return bmp_.readPressure();
+}
+
+float Bmp180::pressure_altitude(void) {
+  // Use default altimeter setting, 
+  // sealevelPressure = 101325 Pascals (std. atmosphere)
+  return bmp_.readAltitude();
+}
+
+} // namespace level1_payload
+} // namespace rcr
Implement the BMP180 container class
