2015-01-20 07:02:46 -05:00
|
|
|
#include "AirCompressor.h"
|
|
|
|
#include "../RobotMap.h"
|
|
|
|
|
|
|
|
AirCompressor::AirCompressor() : Subsystem("AirCompressor") {
|
|
|
|
compressher = new Compressor(31);
|
|
|
|
}
|
|
|
|
void AirCompressor::InitDefaultCommand() {
|
|
|
|
}
|
2015-01-29 14:53:11 -05:00
|
|
|
int AirCompressor::CreateCompressedAir() {
|
|
|
|
printf("compressing and stuff\n");
|
2015-01-20 07:02:46 -05:00
|
|
|
compressher->Start();
|
2015-01-29 14:53:11 -05:00
|
|
|
return 0;
|
2015-01-20 07:02:46 -05:00
|
|
|
}
|
2015-01-29 14:53:11 -05:00
|
|
|
int AirCompressor::StopCreatingCompressedAir() {
|
|
|
|
printf("not compressing and stuff\n");
|
2015-01-20 07:02:46 -05:00
|
|
|
compressher->Stop();
|
2015-01-29 14:53:11 -05:00
|
|
|
return 0;
|
2015-01-20 07:02:46 -05:00
|
|
|
}
|