8#ifndef META_OCEAN_DEVICES_IOS_IOS_ACCELERATION_SENSOR_3_DOF_H
9#define META_OCEAN_DEVICES_IOS_IOS_ACCELERATION_SENSOR_3_DOF_H
106 return std::string(
"IOS 3DOF Acceleration Sensor");
109 return std::string(
"IOS 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
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
static std::string deviceNameIOSAccelerationSensor3DOF(const SensorType sensorType)
Returns the name of this sensor.
Definition IOSAccelerationSensor3DOF.h:100
IOSAccelerationSensor3DOF(const SensorType sensorType)
Creates a new 3DOF acceleration sensor device.
static constexpr Scalar standardGravity_
Definition of the standard gravity, in m/s^2.
Definition IOSAccelerationSensor3DOF.h:97
virtual bool start()
Starts the device.
friend class IOSFactory
Definition IOSAccelerationSensor3DOF.h:34
static DeviceType deviceTypeIOSAccelerationSensor3DOF(const SensorType sensorType)
Returns the device type of this sensor.
Definition IOSAccelerationSensor3DOF.h:112
virtual bool stop()
Stops the device.
void onDeviceMotion(CMDeviceMotion *deviceMotion)
Callback function when using SENSOR_LINEAR_ACCELERATION_3DOF.
virtual bool pause()
Pauses the device.
virtual ~IOSAccelerationSensor3DOF()
Destructs a 3DOF acceleration sensor device.
MotionManager::ListenerId deviceMotionListenerId_
Definition IOSAccelerationSensor3DOF.h:94
IOSSensor(const std::string &name, const DeviceType type)
Creates a new sensor by its name and type.
static constexpr ListenerId invalidListenerId()
Returns an invalid listener id.
Definition MotionManager.h:121
unsigned int ListenerId
Definition of a listener id for a registered callbacks.
Definition MotionManager.h:43
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
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Devices IOS library.
Definition devices/ios/IOS.h:20
Namespace of the Devices library.
Definition AccelerationSensor3DOF.h:24
The namespace covering the entire Ocean framework.
Definition Accessor.h:15