mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
20 lines
440 B
C++
20 lines
440 B
C++
|
#include "Pnuematics.h"
|
||
|
#include "../RobotMap.h"
|
||
|
|
||
|
Pnuematics::Pnuematics() : Subsystem("Pnuematics"){
|
||
|
solenoid1 = new Solenoid(BINELEVATOR_SOLDENOID_ONE);
|
||
|
solenoid2 = new Solenoid(BINELEVATOR_SOLDENOID_TWO);
|
||
|
}
|
||
|
void Pnuematics::InitDefaultCommand(){
|
||
|
}
|
||
|
void Pnuematics::SetOpen(bool k){
|
||
|
if(k){
|
||
|
solenoid1->Set(true);
|
||
|
solenoid2->Set(false);
|
||
|
}else{
|
||
|
solenoid1->Set(false);
|
||
|
solenoid2->Set(true);
|
||
|
}
|
||
|
}
|
||
|
// vim: ts=2:sw=2:et
|