libPlayingWithFusion
2020.02.24
Playing With Fusion driver library for FRC roboRIO
|
8 #include <frc/util/Color.h>
49 int proximityGain,
int proximityLedCurrent);
70 void SetGain(
double r,
double g,
double b,
double c,
double gamma);
132 const uint8_t m_deviceAddress = 0x39;
134 std::chrono::steady_clock::time_point lastRx;
137 bool m_proximitySaturated;
144 double m_alsIntegrationTime = 80;
145 double m_alsWaitTime = 0;
147 double m_proximitySampleTime = 20;
148 double m_proximityPulseLength = 0.008;
149 int m_numProximityPulses = 2;
150 int m_proximityGain = 2;
151 int m_proximityLedCurrent = 90;
153 double m_gamma = 1.0 / 2.2;
154 double m_rGain = 1.0 / 0.197;
155 double m_gGain = 1.0 / 0.126;
156 double m_bGain = 1.0 / 0.071;
157 double m_cGain = 1.0 / 0.340;
197 void PushConfiguration();
double GetAmbientLightLevel()
Definition: TMD37003.cpp:203
double GetBlue()
Definition: TMD37003.cpp:194
double GetGreen()
Definition: TMD37003.cpp:184
Definition: TMD37003.h:14
Color GetColor()
Definition: TMD37003.cpp:110
TMD37003(I2C::Port i2cPort)
Definition: TMD37003.cpp:12
void ConfigureColorSense(double alsIntegrationTime, int alsGain)
Definition: TMD37003.cpp:41
double GetSaturation()
Definition: TMD37003.cpp:155
void SetGain(double r, double g, double b, double c, double gamma)
Definition: TMD37003.cpp:94
double GetRed()
Definition: TMD37003.cpp:174
void ConfigureProximitySense(double proximitySampleTime, double proximityPulseLength, int numProximityPulses, int proximityGain, int proximityLedCurrent)
Definition: TMD37003.cpp:64
double GetHue()
Definition: TMD37003.cpp:120
double GetProximity()
Definition: TMD37003.cpp:213