DeepSpace
2019
Light.h
Go to the documentation of this file.
1
#ifndef _LIGHT_HG_
2
#define _LIGHT_HG_
3
4
#include <frc/commands/Subsystem.h>
5
#include "
RobotMap.h
"
6
#include <
Commands/ControlLight.h
>
7
#include <frc/Solenoid.h>
8
9
class
Light
:
public
frc::Subsystem {
10
public
:
11
Light
();
12
void
InitDefaultCommand
()
override
;
13
14
void
On
();
15
void
Off
();
16
17
private
:
18
frc::Solenoid*
pLight
;
19
};
20
21
#endif //_LIGHT_HG_
RobotMap.h
Light::On
void On()
Definition:
Light.cpp:11
Light
Definition:
Light.h:9
ControlLight.h
Light::pLight
frc::Solenoid * pLight
Pointer to Solenoid.
Definition:
Light.h:18
Light::InitDefaultCommand
void InitDefaultCommand() override
Initalizes the default command for this subsystem (ControlLight)
Definition:
Light.cpp:7
Light::Off
void Off()
Definition:
Light.cpp:15
Light::Light
Light()
Class constructor.
Definition:
Light.cpp:3
src
main
include
Subsystems
Light.h
Generated by
1.8.13