View Single Post
  #1   Spotlight this post!  
Unread 08-02-2012, 17:24
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
How to make the Gyro work

Well after not being able to get the accelerometer to work, I'm going to try the gyro. But of course its not that easy. I just get a bunch of numbers that increment up. (Ex:2.97922e+087) Code and Pictures:

Code:
Gyro *gyro;
...
gyro = new Gyro (1);
...
gyro->Reset();
...
std::cout<<gyro->GetAngle()<<endl;
Reply With Quote