Revision b4885314 devices/PowerManagement/PowerManagement.cpp
devices/PowerManagement/PowerManagement.cpp | ||
---|---|---|
133 | 133 |
frame.data16[0] = this->proximityRingValue[i]; |
134 | 134 |
frame.DLC = 2; |
135 | 135 |
this->transmitMessage(&frame); |
136 |
// HACK This is a first workaround (do wrapping of 4 sensors, better timing than 10 ms in sleep) |
|
137 |
// I choosed 10 ms, because 10 ms x 8 = 80 ms < 125 ms which is the updaterate CAN::UPDATE_PERIOD_MSEC |
|
138 |
BaseThread::sleep(MS2ST(10)); // Sleep, otherwise the cognition-board wont receive all messages |
|
136 |
BaseThread::sleep(US2ST(10)); // Use to sleep for 10 CAN cycle (@1Mbit), otherwise the cognition-board might not receive all messagee |
|
139 | 137 |
} |
140 | 138 |
++this->bc_counter; |
141 | 139 |
} |
Also available in: Unified diff