Quote:
Originally Posted by TenaciousDrones
I'm a little lost because this is my first year programming. I'm starting from scratch because our old programmer forgot the password and I had to reimage the our computer so I don't have any of our previous data.
By differential steering, do you mean chassis.drive(ROBOT_TASK_PRIORITY, ROBOT_TASK_PRIORITY);?
So if I were to use the curve, it only works at 1.0 or -1.0.
Also I can just use arcade/tank drive to turn? Can you possibly explain how?
Thank you for the help guys.
Also, I have our robot set for arcade drive in teleop and fowards and backwards are fine but the left and right are flipped. Basically up is foward, back is backwards, left is right, and right is left. I can't remember if our robot was like that last year. Is there any way to fix that.
|
Basically, to use arcade drive during autonomous, create a method in your chassis subsystem that takes in 2 parameters:
double speed, double turnRate. The method only needs to contain 1 line:
chassis.arcadeDrive(speed, turnRate); From there, just put it into a command like normal, feeding it the speed and turnRate values. To turn in place, just feed it (0, 1) or (0, -1). A similar process applies to tankDrive, only now your parameters are
double leftSpeed, double rightSpeed, your line of code is
chassis.tankDrive(leftSpeed, rightSpeed); and to turn in place you feed it (1, -1) or (-1, 1).
About the teleop question: are you using 1 joystick, 2 joysticks, or 1 gamepad to drive (only to control the drivetrain, don't include what your operator uses). And could you post the line of code that controls the drivetrain (
chassis.arcadeDrive(...);)