|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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());
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.... |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|