Files
Colby Skeggs ff597e6ac4 Fixed C++ side of artf2604 in FRCSim - synchronized C++ codebases, updated examples.
Change-Id: I2fdc9deb4c8e249448dcbda4214fd900c2bc4ea8
2014-06-25 19:50:32 -07:00

47 lines
852 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:
AnalogInput* 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