From d22758db0b29dedd37b2b13ec06c5c825982c703 Mon Sep 17 00:00:00 2001 From: mhtayebzadeh <30778711+mhtayebzadeh@users.noreply.github.com> Date: Mon, 30 Jul 2018 09:47:08 +0430 Subject: [PATCH 1/2] Update DynamixelMotor.h add Setid function to DynamixelDevice class --- src/DynamixelMotor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DynamixelMotor.h b/src/DynamixelMotor.h index 665eacc..fe0efcd 100644 --- a/src/DynamixelMotor.h +++ b/src/DynamixelMotor.h @@ -69,7 +69,10 @@ class DynamixelDevice { return mStatus=mInterface.reset(mID, mStatusReturnLevel); } - + int setid(uint8_t id) // typedef uint8_t DynamixelID; + { + mID = id; + } private: DynamixelInterface &mInterface; From 584df78338be56f1b3811d7950e73b0a2889d2f4 Mon Sep 17 00:00:00 2001 From: mhtayebzadeh <30778711+mhtayebzadeh@users.noreply.github.com> Date: Mon, 30 Jul 2018 09:49:16 +0430 Subject: [PATCH 2/2] Update DynamixelMotor.h --- src/DynamixelMotor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DynamixelMotor.h b/src/DynamixelMotor.h index fe0efcd..d8b1d32 100644 --- a/src/DynamixelMotor.h +++ b/src/DynamixelMotor.h @@ -72,6 +72,7 @@ class DynamixelDevice int setid(uint8_t id) // typedef uint8_t DynamixelID; { mID = id; + return 0; } private: