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