Revision 88afb834 devices/DiWheelDrive/global.hpp
devices/DiWheelDrive/global.hpp | ||
---|---|---|
171 | 171 |
int rpmHardRight[2] = {rpmHardLeft[1],rpmHardLeft[0]}; |
172 | 172 |
|
173 | 173 |
// Line Following thresholds set due to calibration |
174 |
int threshProxyL = 0; |
|
175 |
int threshProxyR = 0; |
|
174 |
// MaxDelta: 18676, FL: 4289, FR: 22965 |
|
175 |
int threshProxyL = 2168; |
|
176 |
int threshProxyR = 24406; |
|
177 |
|
|
178 |
// Buffer for sensor values |
|
179 |
struct sensorRecord |
|
180 |
{ |
|
181 |
int FL = 0; |
|
182 |
int FR = 0; |
|
183 |
int delta = 0; |
|
184 |
int error = 0; |
|
185 |
}; |
|
186 |
|
|
187 |
int sensSamples = 0; |
|
188 |
sensorRecord senseRec[1000]; |
|
189 |
|
|
176 | 190 |
|
177 | 191 |
public: |
178 | 192 |
Global() : |
Also available in: Unified diff