File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments