bugfix, debug code for encoder.
This commit is contained in:
parent
ef9db9032b
commit
b4d5ead23a
@ -28,7 +28,7 @@ public:
|
|||||||
ramp(12),
|
ramp(12),
|
||||||
drive(&left_drive, &right_drive),
|
drive(&left_drive, &right_drive),
|
||||||
shooter( // initialize Shooter object.
|
shooter( // initialize Shooter object.
|
||||||
&shooter1, &shooter2, &ramp, &ramp_height),
|
&shooter1, &shooter2, &ramp),
|
||||||
driver_stick(0), // right stick (operator)
|
driver_stick(0), // right stick (operator)
|
||||||
operator_stick(1) // left stick (driver)
|
operator_stick(1) // left stick (driver)
|
||||||
{
|
{
|
||||||
@ -104,6 +104,7 @@ private:
|
|||||||
|
|
||||||
void TeleopPeriodic()
|
void TeleopPeriodic()
|
||||||
{
|
{
|
||||||
|
std::cout << "Ramp position: "<< ramp.GetEncPosition() << std::endl;
|
||||||
drive.ArcadeDrive(&driver_stick, true);
|
drive.ArcadeDrive(&driver_stick, true);
|
||||||
|
|
||||||
// This is shit code for testing. Replace it with real code.
|
// This is shit code for testing. Replace it with real code.
|
||||||
|
Reference in New Issue
Block a user