View Single Post
  #6   Spotlight this post!  
Unread 28-02-2012, 21:19
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Use Gyro to turn 90 Degrees

Yes, you can do the following, for eample:
Code:
float targetHeading = gyro->GetAngle() + 90.0;
while (gyro->GetAngle() < targetHeading)
{
    drive->ArcadeDrive(0.0, 0.5);
}
__________________
Reply With Quote