Intake won't work in auton

I was testing my auton with my (now working) intake and rollers, when I came upon an issue. The robot was moving well autonomously, but I had issues getting the intake and rollers to work in autonomous. Is there a different way in which I need to set the velocity rather than the way that I do it? (This is the way I set my velocities for these motors in opcontrol). Thanks in advance!

void autonomous() {

     std::shared_ptr<okapi::OdomChassisController> chassis = okapi::ChassisControllerBuilder().withMotors({1,19},{-17,-2}).withDimensions(okapi::AbstractMotor::gearset::green, scales).withOdometry(scales).buildOdometry();

     std::shared_ptr<okapi::ChassisModel> model = std::dynamic_pointer_cast<okapi::ChassisModel>(chassis->getModel());

     pros::delay(500);

     intake.moveVelocity(600);

     chassis->moveDistance(1_ft);

     chassis->turnAngle(45_deg);

     chassis->moveDistance(2.8_ft);

     rollers.moveVelocity(600);

}