Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Gyrotask.c
- Committer:
- Lachrymosa
- Date:
- 2011-10-27
- Revision:
- 0:823a9a4db739
File content as of revision 0:823a9a4db739:
//#ifndef GYROTASK_C_GUARD
//#define GYROTASK_C_GUARD
#include "Gyrotask.h"
extern Serial debug;
void Gyrotask()
{
debug.printf("Now starting ITG-3200... \n");
float GyroX = gyro.getGyroX()/0.0612; //+- the offset then / 0.0612 for divisions of voltage to = degrees/second.
float GyroY = gyro.getGyroY()/0.0612;
float GyroZ = gyro.getGyroZ()/0.0612;
//debug.printf("%i, %i, %i\n", gyro.getGyroX(),
//gyro.getGyroY(), gyro.getGyroZ());
}
//#endif