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

DriveController(Chassis* chassis, int threshold, std::function<double(double)> speedCurve)

Constructs a DriveController with the

Parameters

  • chassis - The chassis to drive the motors on
  • threshold - The joystick threshold
  • speedCurve - The function to curve the controller with.

Example

//use a linear speed curve
DriveController dc = DriveController(&chassis, 20, [](double v){ return v; });