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"
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_
void On()
Definition: Light.cpp:11
Definition: Light.h:9
frc::Solenoid * pLight
Pointer to Solenoid.
Definition: Light.h:18
void InitDefaultCommand() override
Initalizes the default command for this subsystem (ControlLight)
Definition: Light.cpp:7
void Off()
Definition: Light.cpp:15
Light()
Class constructor.
Definition: Light.cpp:3