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
"
6
#include <
Commands/ControlCargo.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_
RobotMap.h
Flap
Definition:
Flap.h:9
ControlCargo.h
Flap::Release
void Release()
Release pressure.
Definition:
Flap.cpp:19
Flap::Retract
void Retract()
Retract the Flap.
Definition:
Flap.cpp:15
Flap::Flap
Flap()
Class constructor.
Definition:
Flap.cpp:3
Flap::pSolenoid
frc::DoubleSolenoid * pSolenoid
Pointer to Solenoid.
Definition:
Flap.h:19
Flap::Deploy
void Deploy()
Deploy the Flap.
Definition:
Flap.cpp:11
Flap::InitDefaultCommand
void InitDefaultCommand() override
Initalizes the default command for this subsystem (ControlFlap)
Definition:
Flap.cpp:7
src
main
include
Subsystems
Flap.h
Generated by
1.8.13