Skip to content

Commit ed9ae0b

Browse files
committed
autosync
1 parent beb8109 commit ed9ae0b

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# [0.10.7]
2+
- Fixed int overflow issue w/ Arduino Mega example
3+
14
# [0.10.6]
25
- Fixed getEndpoint not updating requested_msg_id_, causing periodic messages to be read as a TxSdo message.
36

examples/SineWaveUART/SineWaveUART.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ unsigned long baudrate = 19200; // Must match what you configure on the ODrive (
2727
// pin 1: TX - connect to ODrive RX
2828
// See https://www.pjrc.com/teensy/td_uart.html for other options on Teensy
2929
// HardwareSerial& odrive_serial = Serial1;
30-
// int baudrate = 115200; // Must match what you configure on the ODrive (see docs for details)
30+
// unsigned long baudrate = 115200; // Must match what you configure on the ODrive (see docs for details)
3131

3232
// Arduino Mega or Due - Serial1
3333
// pin 19: RX - connect to ODrive TX
3434
// pin 18: TX - connect to ODrive RX
3535
// See https://www.arduino.cc/reference/en/language/functions/communication/serial/ for other options
3636
// HardwareSerial& odrive_serial = Serial1;
37-
// int baudrate = 115200; // Must match what you configure on the ODrive (see docs for details)
37+
// unsigned long baudrate = 115200; // Must match what you configure on the ODrive (see docs for details)
3838

3939

4040
ODriveUART odrive(odrive_serial);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://arduino.github.io/arduino-cli/0.33/library-specification/
22
name=ODriveArduino
3-
version=0.10.6
3+
version=0.10.7
44
author=ODrive Robotics Inc. <[email protected]>
55
maintainer=ODrive Robotics Inc. <[email protected]>
66
sentence=Library to control ODrive motor controllers

src/ODriveEnums.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ enum ODriveSpiEncoderMode {
166166
SPI_ENCODER_MODE_NOVOHALL = 8,
167167
};
168168

169+
// ODrive.IncrementalEncoderFilter
170+
enum ODriveIncrementalEncoderFilter {
171+
INCREMENTAL_ENCODER_FILTER_SPEED_10M = 0,
172+
INCREMENTAL_ENCODER_FILTER_SPEED_20M = 1,
173+
};
174+
169175
// ODrive.Rs485EncoderMode
170176
enum ODriveRs485EncoderMode {
171177
RS485_ENCODER_MODE_DISABLED = 0,
@@ -190,8 +196,8 @@ enum ODriveInputMode {
190196

191197
// ODrive.MotorType
192198
enum ODriveMotorType {
193-
MOTOR_TYPE_HIGH_CURRENT = 0,
194-
MOTOR_TYPE_GIMBAL = 2,
199+
MOTOR_TYPE_PMSM_CURRENT_CONTROL = 0,
200+
MOTOR_TYPE_PMSM_VOLTAGE_CONTROL = 2,
195201
MOTOR_TYPE_ACIM = 3,
196202
};
197203

0 commit comments

Comments
 (0)