DeepSpace  2019
Piston.h
Go to the documentation of this file.
1 #ifndef _PISTON_HG_
2 #define _PISTON_HG_
3 
4 #include <frc/commands/Subsystem.h>
5 #include "RobotMap.h"
7 #include <frc/Solenoid.h>
8 
9 class Piston : public frc::Subsystem {
10  public:
11  Piston();
12  void InitDefaultCommand() override;
13 
14  void Deploy();
15  void Retract();
16 
17  private:
18  frc::Solenoid* pSolenoid;
19 };
20 
21 #endif //_PISTON_HG_
void InitDefaultCommand() override
Initalizes the default command for this subsystem (ControlPiston)
Definition: Piston.cpp:7
frc::Solenoid * pSolenoid
Pointer to Solenoid.
Definition: Piston.h:18
void Deploy()
Deploy the piston.
Definition: Piston.cpp:11
void Retract()
Retract the piston.
Definition: Piston.cpp:15
Definition: Piston.h:9
Piston()
Class constructor.
Definition: Piston.cpp:3