2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/Subsystems/Pneumatics.h

61 lines
1.2 KiB
C
Raw Normal View History

2015-02-20 20:54:41 +00:00
#ifndef PNEUMATICS_H
#define PNEUMATICS_H
2015-02-20 16:27:39 +00:00
#include "WPILib.h"
2015-03-09 09:48:18 -04:00
/**
2015-09-18 15:39:18 +00: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 15:39:18 +00: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 15:39:18 +00: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 15:39:18 +00:00
void SetArmsOpen(bool state);
/**
* @brief Sets the state of the compressor
*
* @param state State of the compressor
*/
void SetCompressorEnabled(bool state);
/**
2015-10-08 16:14:57 +00:00
* @brief Sets the state of the elevator arm
*
* @param state State of the arm
*/
2015-10-08 16:14:57 +00:00
void SetElevatorArmOpen(bool state);
2015-09-18 15:39:18 +00:00
/**
* @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 16:27:39 +00:00
};
#endif
// vim: ts=2:sw=2:et