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++

#include "AirCompressor.h"
#include "../RobotMap.h"
AirCompressor::AirCompressor() : Subsystem("AirCompressor") {
compressor = new Compressor(COMPRESSOR_CAN);
}
void AirCompressor::InitDefaultCommand() {
}
void AirCompressor::StartCompressing() {
if(compressor->Enabled()){
printf("Starting compressor\n");
compressor->Start();
}
}
void AirCompressor::StopCompressing() {
if(compressor->Enabled()){
printf("Stopping compressor\n");
compressor->Stop();
}
}