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() {
|
2015-02-04 11:15:21 -05:00
|
|
|
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() {
|
2015-02-04 11:15:21 -05:00
|
|
|
if(compressor->Enabled()){
|
|
|
|
printf("Stopping compressor\n");
|
|
|
|
compressor->Stop();
|
|
|
|
}
|
2015-01-20 07:02:46 -05:00
|
|
|
}
|