blip  0.1
PressureSensorEvent.hpp
Go to the documentation of this file.
1 #ifndef __blip_PressureSensorEvent_hpp
2 #define __blip_PressureSensorEvent_hpp
3 
4 #include <blip/Blip.hpp>
5 #include <blip/SensorEvent.hpp>
6 
7 namespace blip {
8 
15 {
16  public:
17 
19  PressureSensorEvent(time_ms_t eventTime, const float values[16]);
23  virtual ~PressureSensorEvent();
24 
26  inline float getAtmosphericPressure() const
27  { return(getValue(0)); }
28 
30  static const float PRESSURE_STANDARD_ATMOSPHERE;
31 
32  private:
33 
34  CCXX_COPY_DECLS(PressureSensorEvent);
35 };
36 
37 } // namespace blip
38 
39 #endif // __blip_PressureSensorEvent_hpp
float getValue(int index) const
Get a sensor value.
An abstract base class for sensor events.
Definition: SensorEvent.hpp:20
float getAtmosphericPressure() const
Get the atmospheric pressure.
Definition: PressureSensorEvent.hpp:26
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
An atmospheric pressure sensor event, which may be used to calculate altitude.
Definition: PressureSensorEvent.hpp:14
static const float PRESSURE_STANDARD_ATMOSPHERE
Average sea-level pressure in hPa (millibar).
Definition: PressureSensorEvent.hpp:30
virtual ~PressureSensorEvent()
Destructor.
Definition: PressureSensorEvent.cpp:23