void teleDrive() { drive->setLinVelocity(oi->getDriveJoystick()->GetY()); drive->setTurnSpeed(oi->getDriveJoystick()->GetX(), oi->getDriveJoystickButton(1));//TODO: Actual button value needed drive->drive(); drive->shift(oi->getDriveJoystickButton(1), oi->getDriveJoystickButton(1)); }
void teleDrive() { drive->setLinVelocity(-oi->getDriveJoystick()->GetY(Joystick::kRightHand)); drive->setTurnSpeed(oi->getDriveJoystick()->GetX(Joystick::kRightHand), oi->getDriveJoystickButton(1)); drive->drive(); drive->shift(oi->getDriveJoystickButton(8), oi->getDriveJoystickButton(9)); if(oi->getDriveJoystickButton(6)) { comp599->Start(); } else if(oi->getDriveJoystickButton(7)) { comp599->Stop(); } }