8#ifndef META_OCEAN_DEVICES_IOS_IOS_GRAVITY_TRACKER_3_DOF_H
9#define META_OCEAN_DEVICES_IOS_IOS_GRAVITY_TRACKER_3_DOF_H
97 return std::string(
"IOS 3DOF Gravity Tracker");
GravityTracker3DOF(const std::string &name)
Creates a new 3DOF gravity tracker object.
IOSDevice(const std::string &name, const DeviceType type)
Creates a new device by is name.
MotionManager::ListenerId deviceMotionListenerId_
Definition IOSGravityTracker3DOF.h:86
static std::string deviceNameIOSGravityTracker3DOF()
Returns the name of this sensor.
Definition IOSGravityTracker3DOF.h:95
ObjectId trackerObjectId_
The object id of this tracker.
Definition IOSGravityTracker3DOF.h:89
friend class IOSFactory
Definition IOSGravityTracker3DOF.h:35
bool waitingForFirstSample_
True, if the sensor has not yet seen any sample.
Definition IOSGravityTracker3DOF.h:92
void onDeviceMotion(CMDeviceMotion *deviceMotion)
Callback function for obtaining new samples from the device.
bool start() override
Starts the device.
IOSGravityTracker3DOF()
Creates a new 3DOF gravity tracker device.
~IOSGravityTracker3DOF() override
Destructs a 3DOF gravity sensor device.
bool pause() override
Pauses the device.
bool stop() override
Stops the 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
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