View Single Post
  #1   Spotlight this post!  
Unread 15-02-2011, 23:02
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Encoders and gyro

So i have two questions for you people on CD

1) When we put in our encoder code it stops the robot from driving, why?

here is what we do

Code:
Encoder en1;
         DigitalInput *en1a;
         DigitalInput *en1b; 
     
         en1(en1a,en1b);
 
         en1a = new DigitalInput(6);
         enba = new DigitalInput(6);

         en1.Reset();
         printf("encoder =%f\n",  encoder.GetDistante());
The second question is this:
When we drive our robot in mecanum drive with the gyro it works ok but a few glitches:
strafe left works
strafe right turns 180 degrees and then strafes left....
rotation dosent really rotate just swings the back end of the robot left or right....

any ideas?

Last edited by tomy : 15-02-2011 at 23:06. Reason: more code....
Reply With Quote