
21-04-2016, 17:49
|
 |
Programmer/Control System/Scout
AKA: Darian Purry
 FRC #0207 (Metalcrafters)
Team Role: Programmer
|
|
Join Date: Sep 2013
Rookie Year: 2012
Location: Hawthorne
Posts: 13
|
|
|
Re: NavX: Trying to rotate to angle without PID
When trying to call it in RobotInit it throws an error saying
Quote:
PIDController.h:39:3: note: no known conversion for argument 6 from 'Robot*' to 'PIDOutput*'
PIDController.h:37:3: note: PIDController: IDController(float, float, float, PIDSource*, PIDOutput*, float)
PIDController(float p, float i, float d, PIDSource *source, PIDOutput *output,
^
PIDController.h:37:3: note: candidate expects 6 arguments, 7 provided
|
This is how I call it
Code:
turnController = new PIDController(kP, kI, kD, kF, ahrs, this, period = .05);
|