View Single Post
  #5   Spotlight this post!  
Unread 28-02-2012, 21:15
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
Re: Use Gyro to turn 90 Degrees

So another words, if you were heading a direction recording 0. Then you used "GetAngle() + 90" when the drive is correcting itself it will think the robot turned 90 degrees to the right and will try to correct itself by turning 90 degrees to the left?
(Assuming a positive value turns the robot right and a negative value turns the robot left).

I am trying to accomplish this program without using the Reset() because that causes unpredictable angles at which it reset itself.
__________________
FRC Team 539
Student Member: 2010 Breakaway - 2014 Aerial Assist
Mentor: 2015 Recycle Rush - present
Reply With Quote