IAccelerometer¶
-
class
mono::sensor::
IAccelerometer
¶ Abstract inteface for interacting with the accelerometer.
Subclassed by mono::sensor::MMAAccelerometer
Public Functions
-
virtual void
Start
() = 0¶ Start the accelerometer.
Before you can sample any acceleration, you must start the accelerometer. When the accelerometer is running its power consumption will likely increase. Remember to Stop the accelerometer, when you are done sampling the acceleration.
-
virtual void
Stop
() = 0¶ Stops the accelerometer.
A stopped accelerometer can not sample acceleration. Start the accelerometer before you sample any axis.
-
virtual bool
IsActive
() = 0¶ Return the current Start/Stop state of the accelerometer.
- Return
true
only if the accelerometer is started and sampling data
-
virtual int16_t
rawXAxis
() = 0¶ <# brief desc #>
- Return
- <# return desc #>
-
virtual void