From fb7734f443323731d169bd77429ac2b656cc245a Mon Sep 17 00:00:00 2001 From: Adam Long Date: Fri, 13 Feb 2015 16:08:19 +0000 Subject: [PATCH] Fixed drivecheck motor var --- Commands/Test/CheckDrive.cpp | 1 + Commands/Test/CheckRobot.cpp | 2 +- Commands/Test/CheckRobot.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Commands/Test/CheckDrive.cpp b/Commands/Test/CheckDrive.cpp index 73aff31..d51d658 100644 --- a/Commands/Test/CheckDrive.cpp +++ b/Commands/Test/CheckDrive.cpp @@ -5,6 +5,7 @@ #include "../../RobotMap.h" CheckDrive::CheckDrive(int motorID) : CommandGroup("CheckDrive"){ Requires(DentRobot::drivetrain); + motor = motorID; } void CheckDrive::Initialize(){ SetTimeout(1.0); diff --git a/Commands/Test/CheckRobot.cpp b/Commands/Test/CheckRobot.cpp index 6d98ccd..871c51b 100644 --- a/Commands/Test/CheckRobot.cpp +++ b/Commands/Test/CheckRobot.cpp @@ -10,4 +10,4 @@ CheckRobot::CheckRobot(){ AddSequential(new CheckDrive(DRIVE_BACK_LEFT_CAN)); AddSequential(new CheckDrive(DRIVE_BACK_RIGHT_CAN)); } -// vim: ts2:sw=2:et +// vim: ts=2:sw=2:et diff --git a/Commands/Test/CheckRobot.h b/Commands/Test/CheckRobot.h index 702478d..d0df68e 100644 --- a/Commands/Test/CheckRobot.h +++ b/Commands/Test/CheckRobot.h @@ -11,4 +11,4 @@ class CheckRobot: public CommandGroup{ CheckRobot(); }; #endif -// vim: ts2:sw=2:et +// vim: ts=2:sw=2:et