|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "main.h"#include <Arduino.h>#include <Wire.h>#include <math.h>#include "SparkFun_LPS28DFW_Arduino_Library.h"Go to the source code of this file.
Functions | |
| static float | pressureToAltitudeM (float pressureHpa, float seaLevelHpa) |
| Barometric altitude (m) from static pressure using a simple ISA troposphere fit. | |
| void | setup () |
| void | loop () |
Variables | |
| static LPS28DFW | pressureSensor |
| void loop | ( | ) |
Definition at line 55 of file main.cpp.
References delay(), LPS28DFW_SEA_LEVEL_HPA, pressureSensor, pressureToAltitudeM(), and Serial.
|
static |
| void setup | ( | void | ) |
Definition at line 20 of file main.cpp.
References delay(), LPS28DFW_I2C_ADDR, LPS28DFW_SCL_PIN, LPS28DFW_SDA_PIN, LPS28DFW_SEA_LEVEL_HPA, pressureSensor, and Serial.