RobotCore
Robot Core Documentation
|
The Gyro class reads a 3 axis gyro. More...
Public Member Functions | |
void | Reset () |
void | ResetYaw (double yaw) |
double | getYaw () |
double | GetPitch () |
double | GetRoll () |
Static Public Member Functions | |
static int | NormalizeAngle (int angle) |
The Gyro class reads a 3 axis gyro.
The Gyro class reads a 3 axis gyro which is connected to the Arduino The yaw, pitch, and roll is computed by the Arduino and the result is sent to the pi via the serial connection
Note that you can create multiple instances of this class. Each instance will reference the same physical gyro, but may have independent zero points for the yaw, pitch and roll.
double robotCore.Gyro.GetPitch | ( | ) |
double robotCore.Gyro.GetRoll | ( | ) |
double robotCore.Gyro.getYaw | ( | ) |
void robotCore.Gyro.Reset | ( | ) |
Resets the yaw, pitch and roll to zero.
void robotCore.Gyro.ResetYaw | ( | double | yaw | ) |
yaw | - Specifies the new value for the yaw. |