2015-02-20 15:54:41 -05:00
|
|
|
#include "Pneumatics.h"
|
2015-02-20 11:27:39 -05:00
|
|
|
#include "../RobotMap.h"
|
|
|
|
|
2015-03-09 07:25:11 -04:00
|
|
|
Pneumatics::Pneumatics(): Subsystem("Pneumatics"){
|
2015-02-20 11:27:39 -05:00
|
|
|
solenoid1 = new Solenoid(BINELEVATOR_SOLDENOID_ONE);
|
|
|
|
solenoid2 = new Solenoid(BINELEVATOR_SOLDENOID_TWO);
|
|
|
|
}
|
2015-02-20 15:54:41 -05:00
|
|
|
void Pneumatics::InitDefaultCommand(){
|
2015-02-20 11:27:39 -05:00
|
|
|
}
|
2015-02-26 09:03:12 -05:00
|
|
|
void Pneumatics::SetOpen(bool state){
|
|
|
|
if(state){
|
2015-02-20 11:27:39 -05:00
|
|
|
solenoid1->Set(true);
|
|
|
|
solenoid2->Set(false);
|
|
|
|
}else{
|
|
|
|
solenoid1->Set(false);
|
|
|
|
solenoid2->Set(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// vim: ts=2:sw=2:et
|