8#ifndef META_OCEAN_DEVICES_ANDROID_ANDROID_ACCELERATION_SENSOR_3_DOF_H
9#define META_OCEAN_DEVICES_ANDROID_ANDROID_ACCELERATION_SENSOR_3_DOF_H
92 return std::string(
"Android 3DOF Acceleration Sensor");
95 return std::string(
"Android 3DOF Linear Acceleration Sensor");
AccelerationSensor3DOF(const std::string &name, const SensorType sensorType)
Creates a new 3DOF acceleration sensor device.
static DeviceType deviceTypeAccelerationSensor3DOF(const SensorType sensorType)
Returns this device type.
Definition AccelerationSensor3DOF.h:125
friend class AndroidFactory
Definition AndroidAccelerationSensor3DOF.h:39
AndroidAccelerationSensor3DOF(const SensorType sensorType, const ASensor *sensor)
Creates a new 3DOF acceleration sensor device.
~AndroidAccelerationSensor3DOF() override
Destructs a 3DOF acceleration sensor device.
static DeviceType deviceTypeAndroidAccelerationSensor3DOF(const SensorType sensorType)
Returns the device type of this sensor.
Definition AndroidAccelerationSensor3DOF.h:98
Timestamp firstUnixEventTimestamp_
The Unix event timestamp of the first sensor event.
Definition AndroidAccelerationSensor3DOF.h:83
static std::string deviceNameAndroidAccelerationSensor3DOF(const SensorType sensorType)
Returns the name of this sensor.
Definition AndroidAccelerationSensor3DOF.h:86
int64_t firstAndroidEventTimestamp_
The Android event timestamp of the first sensor event.
Definition AndroidAccelerationSensor3DOF.h:80
int onEventFunction() override
The actual event function of this device.
AndroidEventDevice(const std::string &name, const DeviceType type)
Creates a new event device by its name and type.
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
SensorType
Definition of different sensor types.
Definition Sensor.h:43
@ SENSOR_ACCELERATION_3DOF
3DOF acceleration sensor.
Definition Sensor.h:47
@ SENSOR_LINEAR_ACCELERATION_3DOF
3DOF linear acceleration sensor (excluding gravity).
Definition Sensor.h:49
This class implements a timestamp.
Definition Timestamp.h:64
Namespace of the Devices Android library.
Definition devices/android/Android.h:20
Namespace of the Devices library.
Definition AccelerationSensor3DOF.h:24
The namespace covering the entire Ocean framework.
Definition Accessor.h:15