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

void backwardsDriveDistance(double distance, PidController* controller)

Drives the robot the specified distance backwards using the specified PidController.

Parameters

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

Example

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

wc.backwardsDriveDistance(24, &pidController);