|
Re: Xbox Controller with mecanum drive
Quote:
Originally Posted by CjDace
honestly at this point no. I just want the drive to work correctly, Do we have the gyro assigned correctly?
Code:
RobotDrive myDrive, catcherDrive;
Joystick moveStick;
Gyro gyro;
myDrive.mecanumDrive_Cartesian(moveStick.getRawAxis(1), moveStick.getRawAxis(1), moveStick.getRawAxis(1), gyro.getAngle());
|
Well you don't create it, at least in the code you show here. If you don't want field-oriented get rid of the gyro.getAngle() in the mecanumDrive constructor and replace with 0.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.
2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Last edited by TimTheGreat : 28-01-2016 at 17:16.
|