|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object maslab.orc.Gyro
public class Gyro
Orc wrapper for Gyro angular rate sensor.
Field Summary | |
---|---|
double |
gyroCorrectionPerTick
|
double |
mvPerDegreePerSecond
|
Constructor Summary | |
---|---|
Gyro(Orc orc)
Create a new Orc object, using the default gyro port (15) |
|
Gyro(Orc orc,
int port)
|
Method Summary | |
---|---|
double |
calibrate(int ms)
Automatically perform gyro calibration by waiting a while and measuring the drift. |
double |
getRadians()
Read the (calibrated) gyro orientation. |
void |
reset()
Reset the integrated position to zero. |
void |
setRateConstant(double mvPerDegreePerSecond)
Set the scale factor of the gyro, in millivolts per degree per second. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double gyroCorrectionPerTick
public double mvPerDegreePerSecond
Constructor Detail |
---|
public Gyro(Orc orc)
public Gyro(Orc orc, int port)
Method Detail |
---|
public void setRateConstant(double mvPerDegreePerSecond)
public double calibrate(int ms)
ms
- Number of milliseconds to integrate over. According
to Analog Devices, periods greater than 5000ms are of marginal
benefit.
public double getRadians()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |