mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Fixed drivecheck motor var
This commit is contained in:
parent
e657226af5
commit
fb7734f443
@ -5,6 +5,7 @@
|
|||||||
#include "../../RobotMap.h"
|
#include "../../RobotMap.h"
|
||||||
CheckDrive::CheckDrive(int motorID) : CommandGroup("CheckDrive"){
|
CheckDrive::CheckDrive(int motorID) : CommandGroup("CheckDrive"){
|
||||||
Requires(DentRobot::drivetrain);
|
Requires(DentRobot::drivetrain);
|
||||||
|
motor = motorID;
|
||||||
}
|
}
|
||||||
void CheckDrive::Initialize(){
|
void CheckDrive::Initialize(){
|
||||||
SetTimeout(1.0);
|
SetTimeout(1.0);
|
||||||
|
@ -10,4 +10,4 @@ CheckRobot::CheckRobot(){
|
|||||||
AddSequential(new CheckDrive(DRIVE_BACK_LEFT_CAN));
|
AddSequential(new CheckDrive(DRIVE_BACK_LEFT_CAN));
|
||||||
AddSequential(new CheckDrive(DRIVE_BACK_RIGHT_CAN));
|
AddSequential(new CheckDrive(DRIVE_BACK_RIGHT_CAN));
|
||||||
}
|
}
|
||||||
// vim: ts2:sw=2:et
|
// vim: ts=2:sw=2:et
|
||||||
|
@ -11,4 +11,4 @@ class CheckRobot: public CommandGroup{
|
|||||||
CheckRobot();
|
CheckRobot();
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
// vim: ts2:sw=2:et
|
// vim: ts=2:sw=2:et
|
||||||
|
Loading…
Reference in New Issue
Block a user