1 #ifndef __blip_Sensor_hpp 2 #define __blip_Sensor_hpp 10 class SensorEventQueue;
50 const
char*
getName() const throw();
63 Sensor(const ASensor* sensor);
65 inline const ASensor* getHandle()
const 68 const ASensor* _sensor;
75 #endif // __blip_Sensor_hpp Definition: Sensor.hpp:26
Type
Sensor types.
Definition: Sensor.hpp:25
Definition: Sensor.hpp:29
timespan_us_t getMinimumDelay() const
Get the minimum delay between two events for the sensor, in microseconds.
Definition: Sensor.cpp:88
Definition: Sensor.hpp:27
static const float MAGNETIC_FIELD_EARTH_MIN
The minimum magnetic field on the Earth's surface in uT.
Definition: Sensor.hpp:56
const char * getVendor() const
Get the sensor's vendor.
Definition: Sensor.cpp:96
Definition: Sensor.hpp:28
Definition: Sensor.hpp:29
float getResolution() const
Get the sensor's resolution, in the sensor's unit.
Definition: Sensor.cpp:80
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
Definition: Sensor.hpp:27
A class representing a sensor.
Definition: Sensor.hpp:17
static const float MAGNETIC_FIELD_EARTH_MAX
The maximum magnetic field on the Earth's surface in uT.
Definition: Sensor.hpp:59
Type getType() const
Get the sensor type.
Definition: Sensor.cpp:36
const char * getName() const
Get the sensor's name.
Definition: Sensor.cpp:104
A class that provides access to the hardware sensors.
Definition: SensorManager.hpp:23
Definition: Sensor.hpp:26
Definition: Sensor.hpp:28
~Sensor()
Destructor.
Definition: Sensor.cpp:29
Definition: Sensor.hpp:25
Definition: Sensor.hpp:26
Definition: Sensor.hpp:25
friend class SensorEventQueue
Definition: Sensor.hpp:19
Definition: Sensor.hpp:28
uint64_t timespan_us_t
A time interval, measured in microseconds.
Definition: Blip.hpp:30
static const float STANDARD_GRAVITY
The Earth's gravity in m/s2.
Definition: Sensor.hpp:53