Skip to content

Commit 8faf497

Browse files
committed
autosync
1 parent 2725da4 commit 8faf497

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/SineWaveCAN/SineWaveCAN.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,6 @@ 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-
// This has been found to reduce the number of dropped messages, however it can be removed
249-
// for applications requiring loop times over 100Hz.
250247

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

src/ODriveEnums.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ enum ODriveThermistorMode {
201201
THERMISTOR_MODE_QUADRATIC = 2,
202202
THERMISTOR_MODE_PT1000 = 3,
203203
THERMISTOR_MODE_KTY84 = 4,
204+
THERMISTOR_MODE_KTY83_122 = 5,
204205
};
205206

206207
// ODrive.Can.Error

src/ODriveMCPCAN.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ static void onReceive(const CanMsg& msg, ODriveCAN& odrive) {
3535
static void pumpEvents(MCP2515Class& intf) {
3636
// On other platforms, this polls and processes incoming CAN messages.
3737
// However, this is not possible on MCP2515-based platforms.
38-
38+
//
3939
// A 10ms delay was found to reduce the number of dropped messages, however a
4040
// specific root cause has not been identified, and may be a quirk in the MCP2515.
41-
delay(10);
41+
delay(10);
4242
}
4343

4444
CREATE_CAN_INTF_WRAPPER(MCP2515Class)

0 commit comments

Comments
 (0)