6#include <frc/util/Color.h>
46 int proximityGain,
int proximityLedCurrent);
67 void SetGain(
double r,
double g,
double b,
double c,
double gamma);
129 const uint8_t m_deviceAddress = 0x39;
131 std::chrono::steady_clock::time_point lastRx;
134 bool m_proximitySaturated;
141 double m_alsIntegrationTime = 80;
142 double m_alsWaitTime = 0;
144 double m_proximitySampleTime = 20;
145 double m_proximityPulseLength = 0.008;
146 int m_numProximityPulses = 2;
147 int m_proximityGain = 2;
148 int m_proximityLedCurrent = 90;
150 double m_gamma = 1.0 / 2.2;
151 double m_rGain = 1.0 / 0.197;
152 double m_gGain = 1.0 / 0.126;
153 double m_bGain = 1.0 / 0.071;
154 double m_cGain = 1.0 / 0.340;
194 void PushConfiguration();
Definition: TMD37003.h:11
void ConfigureProximitySense(double proximitySampleTime, double proximityPulseLength, int numProximityPulses, int proximityGain, int proximityLedCurrent)
Definition: TMD37003.cpp:64
double GetBlue()
Definition: TMD37003.cpp:194
double GetGreen()
Definition: TMD37003.cpp:184
double GetHue()
Definition: TMD37003.cpp:120
double GetProximity()
Definition: TMD37003.cpp:213
void ConfigureColorSense(double alsIntegrationTime, int alsGain)
Definition: TMD37003.cpp:41
Color GetColor()
Definition: TMD37003.cpp:110
void SetGain(double r, double g, double b, double c, double gamma)
Definition: TMD37003.cpp:94
TMD37003(I2C::Port i2cPort)
Definition: TMD37003.cpp:12
double GetAmbientLightLevel()
Definition: TMD37003.cpp:203
double GetSaturation()
Definition: TMD37003.cpp:155
double GetRed()
Definition: TMD37003.cpp:174
Definition: CANVenom.h:10