Vexcode Text assistance

We’re trying to add a motor speed to our motor, We currently have this command:

//drive fwd to ready tray
Drivetrain.driveFor(10, inches);

We want to add a set speed for the drive train as it’s not fast enough and we need it to go faster, How would we go about doing it?

Drive for isn’t very reliable(imo). If you need you can use int to define speed. For example:

int maxspeed = 100;
Drivetrain.spin(directionType::fwd, maxspeed,velocityUnits::pct);

setDriveVelocity

    Drivetrain.setDriveVelocity(200, rpm);
    Drivetrain.driveFor( 10, inches );
1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.