GET_ANGLE_TRIGGER_READ, GET_ANGULAR_VELOCITY_TRIGGER_READ, GET_RAW_VALUE_TRIGGER_READ, READ_NOT_TRIGGERED| Constructor and Description |
|---|
AxisGyroscope(MultiAxisGyro multiAxisGyro) |
AxisGyroscope(MultiAxisGyro multiAxisGyro,
float degPerSecondFactor) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAngle() |
float |
getAngularVelocity() |
int |
getOffset() |
int |
getRawValue() |
protected float |
readAndUpdateAngle() |
void |
recalibrateOffset() |
void |
setAngle(float angle) |
void |
setOffset(int offset) |
void |
setRawValue(int value) |
void |
setReadTrigger(int trigger) |
public AxisGyroscope(MultiAxisGyro multiAxisGyro)
public AxisGyroscope(MultiAxisGyro multiAxisGyro, float degPerSecondFactor)
public void setRawValue(int value)
setRawValue in interface Gyroscopepublic void setReadTrigger(int trigger)
setReadTrigger in interface Gyroscopeprotected float readAndUpdateAngle()
throws IOException
IOExceptionpublic int getRawValue()
throws IOException
getRawValue in interface GyroscopeIOExceptionpublic float getAngle()
throws IOException
getAngle in interface GyroscopeIOExceptionpublic float getAngularVelocity()
throws IOException
getAngularVelocity in interface GyroscopeIOExceptionpublic void recalibrateOffset()
throws IOException
recalibrateOffset in interface GyroscopeIOExceptionCopyright © 2012–2019 Pi4J. All rights reserved.