8#ifndef META_OCEAN_DEVICES_IOS_IOS_ORIENTATION_TRACKER_3_DOF_H
9#define META_OCEAN_DEVICES_IOS_IOS_ORIENTATION_TRACKER_3_DOF_H
124 return std::string(
"IOS 3DOF Orientation Tracker");
IOSDevice(const std::string &name, const DeviceType type)
Creates a new device by is name.
bool waitingForFirstSample_
True, if the sensor has not yet seen any sample.
Definition IOSOrientationTracker3DOF.h:119
IOSOrientationTracker3DOF()
Creates a new 3DOF orientation tracker device.
friend class IOSFactory
Definition IOSOrientationTracker3DOF.h:62
MotionManager::ListenerId deviceMotionListenerId_
Definition IOSOrientationTracker3DOF.h:113
bool stop() override
Stops the device.
ObjectId trackerObjectId_
The object id of this tracker.
Definition IOSOrientationTracker3DOF.h:116
bool pause() override
Pauses the device.
static std::string deviceNameIOSOrientationTracker3DOF()
Returns the name of this sensor.
Definition IOSOrientationTracker3DOF.h:122
void onDeviceMotion(CMDeviceMotion *deviceMotion)
Callback function for obtaining new samples from the device.
bool start() override
Starts the device.
~IOSOrientationTracker3DOF() override
Destructs a 3DOF orientation sensor device.
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
static constexpr ObjectId invalidObjectId()
Returns an invalid object id.
Definition Measurement.h:631
uint32_t ObjectId
Definition of an object id.
Definition Measurement.h:47
OrientationTracker3DOF(const std::string &name)
Creates a new 3DOF orientation tracker object.
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