rotateCC

void rotateCC(float percent, int degree)

Rotates counter-clockwise, when given a positve percent.

Parameters
  • percent: the power for motors. A negative value will move clockwise.

  • degree: the amount of degrees to rotate. Must be positive.

Examples

1
rotateCC(40.0, 75.0);

Rotates the robot 75 degrees counter-clockwise with motors at 40% power.


1
correctHeading(14.0, 190.0);

Rotates the robot 190 degrees clockwise with motors at 14% power.

Function Variables

No function variables are used.