blip  0.1
LinearAccelerationSensorEvent.hpp
Go to the documentation of this file.
1 #ifndef __blip_LinearAccelerationSensorEvent_hpp
2 #define __blip_LinearAccelerationSensorEvent_hpp
3 
4 #include <blip/Blip.hpp>
5 #include <blip/SensorEvent.hpp>
6 
7 namespace blip {
8 
16 {
17  public:
18 
20  LinearAccelerationSensorEvent(time_ms_t eventTime, const float values[16],
21  Accuracy accuracy);
26 
28  inline float getAccelerationX() const
29  { return(getValue(0)); }
30 
32  inline float getAccelerationY() const
33  { return(getValue(1)); }
34 
36  inline float getAccelerationZ() const
37  { return(getValue(2)); }
38 
39  private:
40 
41  CCXX_COPY_DECLS(LinearAccelerationSensorEvent);
42 };
43 
44 } // namespace blip
45 
46 #endif // __blip_LinearAccelerationSensorEvent_hpp
float getAccelerationZ() const
Get the acceleration on the Z-axis.
Definition: LinearAccelerationSensorEvent.hpp:36
float getValue(int index) const
Get a sensor value.
virtual ~LinearAccelerationSensorEvent()
Destructor.
Definition: LinearAccelerationSensorEvent.cpp:17
An abstract base class for sensor events.
Definition: SensorEvent.hpp:20
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
A linear acceleration sensor event, which measures acceleration, not including the effects of gravity...
Definition: LinearAccelerationSensorEvent.hpp:15
Accuracy
Sensor accuracy ratings.
Definition: SensorEvent.hpp:13
float getAccelerationY() const
Get the acceleration on the Y-axis.
Definition: LinearAccelerationSensorEvent.hpp:32
float getAccelerationX() const
Get the acceleration on the X-axis.
Definition: LinearAccelerationSensorEvent.hpp:28