Skip to content

Commit 4d904ca

Browse files
committed
add Y-series define
1 parent 4ba1b18 commit 4d904ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

c++/example/protocol2.0/read_write/read_write.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
// #define P_SERIES // PH54, PH42, PM54
5050
// #define XL320 // [WARNING] Operating Voltage : 7.4V
5151
// #define MX_SERIES // MX series with 2.0 firmware update.
52+
// #define Y_SERIES // Y70, Y80
5253

5354
// Control table address
5455
#if defined(X_SERIES) || defined(MX_SERIES)
@@ -79,6 +80,13 @@
7980
#define MINIMUM_POSITION_LIMIT 0 // Refer to the CW Angle Limit of product eManual
8081
#define MAXIMUM_POSITION_LIMIT 1023 // Refer to the CCW Angle Limit of product eManual
8182
#define BAUDRATE 1000000 // Default Baudrate of XL-320 is 1Mbps
83+
#elif defined(Y_SERIES)
84+
#define ADDR_TORQUE_ENABLE 512 // Control table address is different in DYNAMIXEL model
85+
#define ADDR_GOAL_POSITION 532
86+
#define ADDR_PRESENT_POSITION 552
87+
#define MINIMUM_POSITION_LIMIT -262144 // Refer to the Minimum Position Limit of product eManual
88+
#define MAXIMUM_POSITION_LIMIT 262144 // Refer to the Maximum Position Limit of product eManual
89+
#define BAUDRATE 57600
8290
#endif
8391

8492
// DYNAMIXEL Protocol Version (1.0 / 2.0)

0 commit comments

Comments
 (0)