blip  0.1
GyroscopeSensorEvent.hpp
Go to the documentation of this file.
1 #ifndef __blip_GyroscopeSensorEvent_hpp
2 #define __blip_GyroscopeSensorEvent_hpp
3 
4 #include <blip/Blip.hpp>
5 #include <blip/SensorEvent.hpp>
6 
7 namespace blip {
8 
15 {
16  public:
17 
19  GyroscopeSensorEvent(time_ms_t eventTime, const float values[16],
20  Accuracy accuracy);
24  virtual ~GyroscopeSensorEvent();
25 
27  inline float getAngularSpeedX() const
28  { return(getValue(0)); }
29 
31  inline float getAngularSpeedY() const
32  { return(getValue(1)); }
33 
35  inline float getAngularSpeedZ() const
36  { return(getValue(2)); }
37 
38  private:
39 
40  CCXX_COPY_DECLS(GyroscopeSensorEvent);
41 };
42 
43 } // namespace blip
44 
45 #endif // __blip_GyroscopeSensorEvent_hpp
float getAngularSpeedY() const
Get the angular speed around the Y-axis.
Definition: GyroscopeSensorEvent.hpp:31
float getValue(int index) const
Get a sensor value.
float getAngularSpeedX() const
Get the angular speed around the X-axis.
Definition: GyroscopeSensorEvent.hpp:27
A gyroscope sensor event, which measures angular speed.
Definition: GyroscopeSensorEvent.hpp:14
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
float getAngularSpeedZ() const
Get the angular speed around the Z-axis.
Definition: GyroscopeSensorEvent.hpp:35
virtual ~GyroscopeSensorEvent()
Destructor.
Definition: GyroscopeSensorEvent.cpp:18
Accuracy
Sensor accuracy ratings.
Definition: SensorEvent.hpp:13