DeepSpace
2019
EdgeLight.cpp
Go to the documentation of this file.
1
#include "
Utils/EdgeLight.h
"
2
#include <iostream>
3
4
LedColour
Utils::EdgeLight::ledbuffer
=
LedColour::kSOLID_WHITE
;
5
frc::Spark*
Utils::EdgeLight::pLEDController
=
new
frc::Spark(
LEDCONTROLLER_ID
);
6
7
void
Utils::EdgeLight::Append
(
LedColour
colour){
8
Utils::EdgeLight::ledbuffer
= colour;
9
}
10
11
void
Utils::EdgeLight::Push
(){
12
if
(
DODEBUG
){
13
std::cout <<
"LED COLOUR: "
<<
Utils::EdgeLight::ledbuffer
/ (double)100 << std::endl;
14
}
15
Utils::EdgeLight::pLEDController
->Set(
Utils::EdgeLight::ledbuffer
/ (
double
)100);
16
}
17
EdgeLight.h
Utils::EdgeLight::ledbuffer
LedColour ledbuffer
Definition:
EdgeLight.cpp:4
Utils::EdgeLight::Push
void Push()
Definition:
EdgeLight.cpp:11
Utils::EdgeLight::pLEDController
frc::Spark * pLEDController
Definition:
EdgeLight.cpp:5
DODEBUG
#define DODEBUG
Definition:
RobotMap.h:15
LEDCONTROLLER_ID
#define LEDCONTROLLER_ID
Definition:
RobotMap.h:93
Utils::EdgeLight::Append
void Append(LedColour colour)
Definition:
EdgeLight.cpp:7
LedColour
LedColour
Definition:
EdgeLight.h:7
kSOLID_WHITE
Definition:
EdgeLight.h:8
src
main
cpp
Utils
EdgeLight.cpp
Generated by
1.8.13