Quote:
Originally Posted by Dpurry23
When trying to call it in RobotInit it throws an error saying
This is how I call it
Code:
turnController = new PIDController(kP, kI, kD, kF, ahrs, this, period = .05);
|
It looks like argument 6 is out of place. You're using "this" in robotinit, which from the error message I assume passes an object of type Robot. I don't think you want that there, considering PIDController is looking for a float. You also have 7 arguments where there should be 6, which makes me think you have an extra argument in there. What is kF? argument 4 should be of type PIDSource.