2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Subsystems/AirCompressor.cpp

21 lines
483 B
C++
Raw Normal View History

2015-01-20 07:02:46 -05:00
#include "AirCompressor.h"
#include "../RobotMap.h"
AirCompressor::AirCompressor() : Subsystem("AirCompressor") {
2015-02-02 19:56:27 -05:00
compressor = new Compressor(COMPRESSOR_CAN);
2015-01-20 07:02:46 -05:00
}
void AirCompressor::InitDefaultCommand() {
}
2015-02-02 19:56:27 -05:00
void AirCompressor::StartCompressing() {
if(compressor->Enabled()){
printf("Starting compressor\n");
compressor->Start();
}
2015-01-20 07:02:46 -05:00
}
2015-02-02 19:56:27 -05:00
void AirCompressor::StopCompressing() {
if(compressor->Enabled()){
printf("Stopping compressor\n");
compressor->Stop();
}
2015-01-20 07:02:46 -05:00
}