Skip to content

Commit

Permalink
Merge pull request #624 from honghyun79/master
Browse files Browse the repository at this point in the history
add Y-series define
  • Loading branch information
honghyun79 authored May 9, 2024
2 parents 720b6e6 + 4d904ca commit 886225c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions c++/example/protocol2.0/read_write/read_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
// #define P_SERIES // PH54, PH42, PM54
// #define XL320 // [WARNING] Operating Voltage : 7.4V
// #define MX_SERIES // MX series with 2.0 firmware update.
// #define Y_SERIES // Y70, Y80

// Control table address
#if defined(X_SERIES) || defined(MX_SERIES)
Expand Down Expand Up @@ -79,6 +80,13 @@
#define MINIMUM_POSITION_LIMIT 0 // Refer to the CW Angle Limit of product eManual
#define MAXIMUM_POSITION_LIMIT 1023 // Refer to the CCW Angle Limit of product eManual
#define BAUDRATE 1000000 // Default Baudrate of XL-320 is 1Mbps
#elif defined(Y_SERIES)
#define ADDR_TORQUE_ENABLE 512 // Control table address is different in DYNAMIXEL model
#define ADDR_GOAL_POSITION 532
#define ADDR_PRESENT_POSITION 552
#define MINIMUM_POSITION_LIMIT -262144 // Refer to the Minimum Position Limit of product eManual
#define MAXIMUM_POSITION_LIMIT 262144 // Refer to the Maximum Position Limit of product eManual
#define BAUDRATE 57600
#endif

// DYNAMIXEL Protocol Version (1.0 / 2.0)
Expand Down

0 comments on commit 886225c

Please sign in to comment.