Go to Post I personally need all the limbs and eyeballs I currently have, and I assume other feel the same way. - bfk [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 46 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi