Skip to content

Commit 8d47f0e

Browse files
committed
autosync
1 parent 8faf497 commit 8d47f0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/SineWaveCAN/SineWaveCAN.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ void setup() {
244244

245245
void loop() {
246246
pumpEvents(can_intf); // This is required on some platforms to handle incoming feedback CAN messages
247+
// Note that on MCP2515-based platforms, this will delay for a fixed 10ms.
248+
//
249+
// This has been found to reduce the number of dropped messages, however it can be removed
250+
// for applications requiring loop times over 100Hz.
247251

248252
float SINE_PERIOD = 2.0f; // Period of the position command sine wave in seconds
249253

0 commit comments

Comments
 (0)