<commit_before>#include "Bmp180.h"

<commit_msg>Implement the BMP180 container class<commit_after>#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
{'fraction_non_alphanumeric': 0.12967914438502673, 'fraction_numerical': 0.05080213903743316, 'mean_word_length': 4.13013698630137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1311132', 'n_tokens_mistral': 286, 'n_tokens_neox': 256, 'n_words': 64}