Skip to content

Commit c055572

Browse files
committed
[Fix] Fixed example code sniffet for getMovingStatus
Signed-off-by: Jonghee Son <zzongaone@gmail.com>
1 parent 2f3c03d commit c055572

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Dynamixel2Arduino.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,22 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
401401
* const int DXL_DIR_PIN = 2;
402402
* Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
403403
* status = dxl.getMovingStatus(1);
404-
* if (status & IN_POSITION == 1) {
404+
* if ((status & IN_POSITION) == IN_POSITION) {
405405
* Serial.print("Arrived");
406406
* }
407-
* if (status & PROFILE_ONGOING == 1) {
407+
* if ((status & PROFILE_ONGOING) == PROFILE_ONGOING) {
408408
* Serial.print("Profile is in progress");
409409
* }
410-
* if (status & FOLLOWING_ERROR == 1) {
410+
* if ((status & FOLLOWING_ERROR) == FOLLOWING_ERROR) {
411411
* Serial.print("Not following desired position trajectory");
412412
* }
413-
* if (status & VELOCITY_PROFILE == 0xC0) {
413+
* if ((status & VELOCITY_PROFILE) == VELOCITY_PROFILE) {
414414
* Serial.print("Using trapezoidal profile");
415415
* }
416-
* else if (status & VELOCITY_PROFILE == 0x80) {
416+
* else if ((status & VELOCITY_PROFILE) == VELOCITY_PROFILE) {
417417
* Serial.print("Using triangular profile");
418418
* }
419-
* else if (status & VELOCITY_PROFILE == 0x40) {
419+
* else if ((status & VELOCITY_PROFILE) == VELOCITY_PROFILE) {
420420
* Serial.print("Using rectangular profile");
421421
* }
422422
* else {

0 commit comments

Comments
 (0)