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 Gyroscope
public void setReadTrigger(int trigger)
setReadTrigger
in interface Gyroscope
protected float readAndUpdateAngle() throws IOException
IOException
public int getRawValue() throws IOException
getRawValue
in interface Gyroscope
IOException
public float getAngle() throws IOException
getAngle
in interface Gyroscope
IOException
public float getAngularVelocity() throws IOException
getAngularVelocity
in interface Gyroscope
IOException
public void recalibrateOffset() throws IOException
recalibrateOffset
in interface Gyroscope
IOException
Copyright © 2012–2014 Pi4J. All rights reserved.