2015-01-16 19:29:55 -05:00
|
|
|
#include "Collector.h"
|
2015-01-11 16:02:49 -05:00
|
|
|
#include "../RobotMap.h"
|
|
|
|
|
2015-01-16 19:29:55 -05:00
|
|
|
Collector::Collector() : Subsystem("Collector") {
|
2015-02-02 19:56:27 -05:00
|
|
|
windowMotorLeft=new CANTalon(COLLECTOR_WINDOW_LEFT_CAN);
|
|
|
|
windowMotorRight=new CANTalon(COLLECTOR_WINDOW_RIGHT_CAN);
|
|
|
|
collectorMotorLeft=new CANTalon(COLLECTOR_LEFT_CAN);
|
|
|
|
collectorMotorRight=new CANTalon(COLLECTOR_RIGHT_CAN);
|
2015-01-11 16:02:49 -05:00
|
|
|
}
|
2015-01-16 19:29:55 -05:00
|
|
|
void Collector::InitDefaultCommand() {
|
2015-01-11 16:02:49 -05:00
|
|
|
}
|
2015-02-06 20:38:02 -05:00
|
|
|
void Collector::MoveArms(double a){
|
2015-02-02 18:53:02 -05:00
|
|
|
windowMotorLeft->Set(a);
|
|
|
|
windowMotorRight->Set(-a);
|
2015-02-02 12:14:27 -05:00
|
|
|
}
|
2015-02-04 20:57:33 -05:00
|
|
|
void Collector::MoveRollers(double a){
|
2015-02-02 18:53:02 -05:00
|
|
|
collectorMotorLeft->Set(a);
|
|
|
|
collectorMotorRight->Set(-a);
|
2015-02-02 12:14:27 -05:00
|
|
|
}
|
2015-02-02 19:56:27 -05:00
|
|
|
bool Collector::ArmSensor(){
|
|
|
|
// TODO: include limit switch code
|
|
|
|
return false;
|
2015-02-02 12:14:27 -05:00
|
|
|
}
|
|
|
|
bool Collector::BoxCollected(){
|
2015-02-04 20:57:33 -05:00
|
|
|
return false;
|
|
|
|
//return boxSwitch->Get();
|
2015-01-17 12:21:16 -05:00
|
|
|
}
|
2015-02-07 13:28:08 -05:00
|
|
|
// vim: ts2:sw=2:et
|