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