DriveController(Chassis* chassis, int threshold, std::function<double(double)> speedCurve)
Constructs a DriveController with the
Parameters
chassis- The chassis to drive the motors onthreshold- The joystick thresholdspeedCurve- The function to curve the controller with.
Example
//use a linear speed curve
DriveController dc = DriveController(&chassis, 20, [](double v){ return v; });