public interface Gyroscope
| Modifier and Type | Field and Description |
|---|---|
static int |
GET_ANGLE_TRIGGER_READ |
static int |
GET_ANGULAR_VELOCITY_TRIGGER_READ |
static int |
GET_RAW_VALUE_TRIGGER_READ |
static int |
READ_NOT_TRIGGERED |
| Modifier and Type | Method and Description |
|---|---|
float |
getAngle() |
float |
getAngularVelocity() |
int |
getOffset() |
int |
getRawValue() |
void |
recalibrateOffset() |
void |
setAngle(float angle) |
void |
setOffset(int offset) |
void |
setRawValue(int value) |
void |
setReadTrigger(int readTrigger) |
static final int READ_NOT_TRIGGERED
static final int GET_ANGLE_TRIGGER_READ
static final int GET_ANGULAR_VELOCITY_TRIGGER_READ
static final int GET_RAW_VALUE_TRIGGER_READ
float getAngularVelocity()
throws IOException
IOExceptionvoid recalibrateOffset()
throws IOException
IOExceptionvoid setReadTrigger(int readTrigger)
void setRawValue(int value)
int getRawValue()
throws IOException
IOExceptionvoid setOffset(int offset)
int getOffset()
void setAngle(float angle)
float getAngle()
throws IOException
IOExceptionCopyright © 2012–2019 Pi4J. All rights reserved.