Quote:
Originally Posted by tomy
How does the gyro help with driving carcesion mecanum drive, because we got our joysticks set up the way we want it then we hooked up the gyro and our robot didn't drive as well
all we did is this
Code:
mecanum_carcesion(float x, float y, float rotation, gyro.GetAngle();
yes we do have stuff for float x and y and rotation im just cant remeber them right now.
also should we just use the gyro for automomous mode?
|
We tried the same code and got similar results. The gyro angle part of the mecanumdrive_cartesian method seems to be broken. For example, putting a fixed angle of 90 degrees in for gyro->GetAngle() exhibits the following behavior:
forwards drives forwards
backwards drives backwards
spin right = strafe right
spin left = strafe left
strafe right = spin left
strafe left = spin right
Running it with the actual gyro output in there (and yes, the gyro shows the correct angle) exhibits very strange behavior like strafe left becomes turn left becomes strafe right while the joystick is pushed to the left and held there.