2
0
mirror of https://github.com/team2059/Dent synced 2024-12-28 21:02:30 -05:00
dent/Subsystems/Pneumatics.h

55 lines
1.1 KiB
C
Raw Normal View History

2015-02-20 15:54:41 -05:00
#ifndef PNEUMATICS_H
#define PNEUMATICS_H
2015-02-20 11:27:39 -05:00
#include "WPILib.h"
2015-03-09 09:48:18 -04:00
/**
2015-09-18 11:39:18 -04:00
* @brief Pneumatics on the robot
2015-07-31 12:52:15 -04:00
*
2015-03-09 09:48:18 -04:00
* For opening or closing the bin arms
*/
2015-07-31 12:52:15 -04:00
class Pneumatics: public Subsystem {
private:
2015-09-18 11:39:18 -04:00
Compressor *compressor; //<! Compressor
2015-07-31 12:52:15 -04:00
Solenoid *solenoid1, //<! Solenoid 1
*solenoid2, //<! Solenoid 2
*solenoid3, //<! Solenoid 3
*solenoid4; //<! Solenoid 4
2015-09-18 11:39:18 -04:00
bool armState; //<! State of the arm
2015-07-31 12:52:15 -04:00
public:
/**
* @brief Constructs Pneumatics
*/
Pneumatics();
/**
* @brief No action
*/
void InitDefaultCommand();
/**
* @brief Sets the state of the arms
*
* @param state State of the arms
*/
2015-09-18 11:39:18 -04:00
void SetArmsOpen(bool state);
/**
* @brief Sets the state of the compressor
*
* @param state State of the compressor
*/
void SetCompressorEnabled(bool state);
/**
* @brief Gets the state of the arms
*
* @return State of the arms
*/
bool GetArmsOpen();
/**
* @brief Gets the state of the compressor
*
* @return State of the compressor
*/
bool GetCompressorEnabled();
2015-02-20 11:27:39 -05:00
};
#endif
// vim: ts=2:sw=2:et