Package com.diozero.devices.imu
Class ImuBase
java.lang.Object
com.diozero.devices.imu.ImuBase
- All Implemented Interfaces:
DeviceInterface
,ImuInterface
,AutoCloseable
public abstract class ImuBase extends Object implements ImuInterface
-
Constructor Summary
Constructors Constructor Description ImuBase()
-
Method Summary
Modifier and Type Method Description protected void
processData()
void
startRead()
void
stopRead()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.diozero.api.DeviceInterface
close
Methods inherited from interface com.diozero.devices.imu.ImuInterface
addOrientationListener, addTapListener, getAccelerometerData, getCompassData, getGyroData, getImuData, getImuName, getPollInterval, hasAccelerometer, hasCompass, hasGyro
-
Constructor Details
-
ImuBase
public ImuBase()
-
-
Method Details
-
startRead
public void startRead()- Specified by:
startRead
in interfaceImuInterface
-
stopRead
public void stopRead()- Specified by:
stopRead
in interfaceImuInterface
-
processData
protected void processData()
-