diff --git a/Commands/Test/CheckDrive.cpp b/Commands/Test/CheckDrive.cpp index 8a114b7..1104a62 100644 --- a/Commands/Test/CheckDrive.cpp +++ b/Commands/Test/CheckDrive.cpp @@ -12,16 +12,16 @@ void CheckDrive::Initialize(){ } void CheckDrive::Execute(){ switch(motor){ - case DRIVE_FRONT_LEFT_CAN: + case DRIVE_FRONT_LEFT: DentRobot::drivetrain->TestMotor(DentRobot::drivetrain->FRONTLEFT, 1); break; - case DRIVE_FRONT_RIGHT_CAN: + case DRIVE_FRONT_RIGHT: DentRobot::drivetrain->TestMotor(DentRobot::drivetrain->FRONTRIGHT, 1); break; - case DRIVE_BACK_LEFT_CAN: + case DRIVE_BACK_LEFT: DentRobot::drivetrain->TestMotor(DentRobot::drivetrain->BACKLEFT, 1); break; - case DRIVE_BACK_RIGHT_CAN: + case DRIVE_BACK_RIGHT: DentRobot::drivetrain->TestMotor(DentRobot::drivetrain->BACKRIGHT, 1); break; default: diff --git a/Commands/Test/CheckRobot.cpp b/Commands/Test/CheckRobot.cpp index 871c51b..49429bd 100644 --- a/Commands/Test/CheckRobot.cpp +++ b/Commands/Test/CheckRobot.cpp @@ -5,9 +5,9 @@ #include "CheckRobot.h" #include "CheckDrive.h" CheckRobot::CheckRobot(){ - AddSequential(new CheckDrive(DRIVE_FRONT_LEFT_CAN)); - AddSequential(new CheckDrive(DRIVE_FRONT_RIGHT_CAN)); - AddSequential(new CheckDrive(DRIVE_BACK_LEFT_CAN)); - AddSequential(new CheckDrive(DRIVE_BACK_RIGHT_CAN)); + AddSequential(new CheckDrive(DRIVE_FRONT_LEFT)); + AddSequential(new CheckDrive(DRIVE_FRONT_RIGHT)); + AddSequential(new CheckDrive(DRIVE_BACK_LEFT)); + AddSequential(new CheckDrive(DRIVE_BACK_RIGHT)); } // vim: ts=2:sw=2:et diff --git a/RobotMap.h b/RobotMap.h index 2f25d55..95d7bd4 100644 --- a/RobotMap.h +++ b/RobotMap.h @@ -6,7 +6,7 @@ #define CODE_VERSION 1.0 // Elevator -#define ELEVATOR_CAN 1 +#define ELEVATOR 1 #define ELEVATOR_BOTTOM_DIO 9 #define ELEVATOR_MIDDLE_DIO 8 #define ELEVATOR_TOP_DIO 7 @@ -14,7 +14,7 @@ #define ELEVATOR_ENCODERB 9 // BinElevator -#define BINELEVATOR_CAN 10 +#define BINELEVATOR 0 #define BINELEVATOR_BOTTOM_DIO 6 #define BINELEVATOR_COLELCT_BIN_DIO 7 #define BINELEVATOR_TOP_DIO 12 @@ -24,16 +24,16 @@ #define BINELEVATOR_SOLDENOID_TWO 7 // Drivetrain -#define DRIVE_FRONT_LEFT_CAN 8 -#define DRIVE_BACK_LEFT_CAN 3 -#define DRIVE_FRONT_RIGHT_CAN 4 -#define DRIVE_BACK_RIGHT_CAN 5 +#define DRIVE_FRONT_LEFT 8 +#define DRIVE_BACK_LEFT 3 +#define DRIVE_FRONT_RIGHT 4 +#define DRIVE_BACK_RIGHT 5 // Collector -#define COLLECTOR_RAMP_CAN 7 -#define COLLECTOR_LEFT_CAN 2 -#define COLLECTOR_BOTTOM_CAN 11 -#define COLLECTOR_RIGHT_CAN 9 +#define COLLECTOR_RAMP 7 +#define COLLECTOR_LEFT 2 +#define COLLECTOR_BOTTOM 11 +#define COLLECTOR_RIGHT 9 #define COLLECTOR_SONAR_ANALOG 3 #endif diff --git a/Subsystems/BinElevator.cpp b/Subsystems/BinElevator.cpp index ffc79ee..3f973f3 100644 --- a/Subsystems/BinElevator.cpp +++ b/Subsystems/BinElevator.cpp @@ -1,7 +1,7 @@ #include "BinElevator.h" #include "../RobotMap.h" BinElevator::BinElevator(){ - motor=new CANTalon(BINELEVATOR_CAN); + motor=new Victor(BINELEVATOR); elevatorEncoder=new Encoder(BINELEVATOR_ENCODERA, BINELEVATOR_ENCODERB, false); elevatorBottom=new DigitalInput(BINELEVATOR_BOTTOM_DIO); elevatorTop=new DigitalInput(BINELEVATOR_TOP_DIO); diff --git a/Subsystems/BinElevator.h b/Subsystems/BinElevator.h index 3ff85a6..1bc7a3f 100644 --- a/Subsystems/BinElevator.h +++ b/Subsystems/BinElevator.h @@ -8,7 +8,7 @@ */ class BinElevator{ private: - CANTalon *motor; //