View Single Post
  #6   Spotlight this post!  
Unread 02-03-2016, 14:48
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Using a Gyro without Encoders

Quote:
Originally Posted by Ether View Post

The post and thread I linked above shows how to turn any angle into +/-180 degrees.

If you compute the angle error ( = target-gyro ) and feed that error into the computation, it will give you the setpoint you should use to go the shortest angle to get to your target (or just see below).
Duh! I wish I'd known that a couple of weeks ago. Would have saved me some time. Learn something new everyday.
Reply With Quote