|
Re: Axis Camera to Dashboard
turnController drives the robot to point it directly at the target using the gyro angle.
The PIDController is designed to slow the robot turn down as it approaches the target gyro angle. Those values (.08, 0.0, 0.5) are coefficients that must match your robot's turning characteristics, so plan to adjust those when you get a real robot to practice with.
The gyro angle was calculated from the camera image by the offset of the target from the center line.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|