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

19 lines
457 B
C++
Raw Normal View History

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
}