sampling_packages/sensors/sensors library

A library containing a sampling package for collecting data from the basic device sensors:

  • accelerometer
  • gyroscope
  • light
  • pedometer

Classes

AccelerometerDatum
A Datum that holds acceleration data collected from the native accelerometer on the phone. Accelerometers measure the velocity of the device. Note that these readings include the effects of gravity. Put simply, you can use accelerometer readings to tell if the device is moving in a particular direction.
AccelerometerProbe
A probe collecting raw data from the accelerometer.
BufferingAccelerometerProbe
A probe that collects accelerometer events and buffers them and return a MultiDatum with all the buffered AccelerometerDatums.
BufferingGyroscopeProbe
A probe that collects gyroscope events and buffers them and return a MultiDatum with all the buffered GyroscopeDatums.
BufferingMagnetometerProbe
A probe that collects gyroscope events and buffers them and return a MultiDatum with all the buffered GyroscopeDatums.
BufferingSensorProbe
A simple abstract probe to be used to implement specific buffered sensor probes.
BufferingUserAccelerometerProbe
A probe that collects accelerometer events and buffers them and return a MultiDatum with all the buffered AccelerometerDatums.
GyroscopeDatum
A Datum that holds rotation data collected from the native gyroscope on the phone. Gyroscopes measure the rate or rotation of the device in 3D space.
GyroscopeProbe
A probe collecting raw data from the gyroscope.
LightDatum
A Datum that holds light intensity in Lux from the light sensor on the phone.
LightProbe
The LightProbe listens to the phone's light sensor typically located near the front camera. Every value is in the SI unit Lux and is stored in a LightDatum object.
MagnetometerDatum
A Datum that holds magnetometer data collected from the native magnetometer on the phone.
MagnetometerProbe
A probe collecting raw data from the gyroscope.
PedometerDatum
Holds the step count.
PedometerProbe
The pedometer probe listens to the hardware step counter sensor.
SensorSamplingPackage
UserAccelerometerDatum
Like AccelerometerDatum, this is a discrete reading from an accelerometer and measures the velocity of the device. However, unlike AccelerometerDatum, this event does not include the effects of gravity.
UserAccelerometerProbe
A probe collecting raw data from the accelerometer.