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
IOException
void recalibrateOffset() throws IOException
IOException
void setReadTrigger(int readTrigger)
void setRawValue(int value)
int getRawValue() throws IOException
IOException
void setOffset(int offset)
int getOffset()
void setAngle(float angle)
float getAngle() throws IOException
IOException
Copyright © 2012–2014 Pi4J. All rights reserved.