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
|
Assuming your code doesn't have the typographical errors you showed us, and assuming your gyro is correctly mounted and wired and initialized, adding the GetAngle() call to the mecanum drive function should give you field-centric control. No matter which way the robot is facing at any given time, telling it to move "forward" will make it go in the direction it was facing when it was turned on.