Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void driveDistance(double distance, PidController* controller)

Drives the robot the specified distance using the specified PidController.

Parameters

  • distance - The distance to drive
  • controller - The PidController to use

Example

wc.estimateStartPos({0, 0}, 0);

wc.driveDistance(24, &pidController);