View Single Post
  #7   Spotlight this post!  
Unread 12-05-2014, 14:27
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Turning Robot with PID Feedback from Gyro

Quote:
Have you tried printing the angle from the returnPIDInput() method?
Could you be turning the opposite direction that you want to be? If you turn right and that causes the angle to count up you'll never get to -90.
Our robot turns left when the PID Loop is enabled giving us negative angles. (This is why the gyro was set to -90.0 instead of 90.0). Also, after I disabled the PID command, I checked the reading on the gyro (I have a button on the dashboard that prints out the Gyro Angle), it was somewhere around -1000 degrees. However, I will try printing the angle from the returnPIDInput() method to see what angles I get.

Quote:
a P of 1.0 your drive will always be turning at full power.
I will take that into account. So if I want the robot to turn at half speed I set P to 0.5, correct?
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
Reply With Quote