View Single Post
  #2   Spotlight this post!  
Unread 31-01-2011, 18:52
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: gyro c++ Programing

That is a very broad question. Can you narrow it down to more specifics what you want to do in autonomous? Gyro is normally used to determine your heading. If you want to tell the robot to turn a certain angle during autonomous, you can certainly use it to achieve what you want. If that's what you want to do, you can either program the robot to turn at a constant speed while monitoring the reading of the gyro until it reaches the target then you stop, or you can use PID control to adjust the speed while you turn (i.e. slow down when you are close to your target).
__________________
Reply With Quote