From 2abec47ce0dd7889138366f05f959d72da64a8b6 Mon Sep 17 00:00:00 2001 From: Aidan Ferguson Date: Wed, 10 Feb 2016 14:56:58 -0500 Subject: [PATCH] bugfix, debug code for encoder. --- src/Robot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Robot.cpp b/src/Robot.cpp index 7d56368..05563dd 100644 --- a/src/Robot.cpp +++ b/src/Robot.cpp @@ -28,7 +28,7 @@ public: ramp(12), drive(&left_drive, &right_drive), shooter( // initialize Shooter object. - &shooter1, &shooter2, &ramp, &ramp_height), + &shooter1, &shooter2, &ramp), driver_stick(0), // right stick (operator) operator_stick(1) // left stick (driver) { @@ -104,6 +104,7 @@ private: void TeleopPeriodic() { + std::cout << "Ramp position: "<< ramp.GetEncPosition() << std::endl; drive.ArcadeDrive(&driver_stick, true); // This is shit code for testing. Replace it with real code.