Files
Alex Henning c7e17b8e35 Added PacGoat code for C++.
Change-Id: I4fd19fbdc65c25c5bbcdce937a31bc6fa1c11cb4
2014-06-25 16:49:14 -07:00

47 lines
854 B
C++

#ifndef Pneumatics_H
#define Pneumatics_H
#include "Commands/Subsystem.h"
#include "WPILib.h"
/**
* The Pneumatics subsystem contains the compressor and a pressure sensor.
*
* NOTE: The simulator currently doesn't support the compressor or pressure sensors.
*/
class Pneumatics: public Subsystem
{
private:
AnalogChannel* pressureSensor;
#ifdef REAL
Compressor* compressor;
#endif
static const double MAX_PRESSURE = 2.55;
public:
Pneumatics();
/**
* No default command
*/
void InitDefaultCommand();
/**
* Start the compressor going. The compressor automatically starts and stops as it goes above and below maximum pressure.
*/
void Start();
/**
* @return Whether or not the system is fully pressurized.
*/
bool IsPressurized();
/**
* Puts the pressure on the SmartDashboard.
*/
void WritePressure();
};
#endif