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