File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,7 @@ void HardwareInterface::extractRobotStatus()
670670 TriState::FALSE ;
671671
672672 // Note that this is true as soon as the drives are powered,
673- // even if the breakes are still closed
673+ // even if the brakes are still closed
674674 // which is in slight contrast to the comments in the
675675 // message definition
676676 robot_status_resource_.drives_powered =
@@ -679,7 +679,7 @@ void HardwareInterface::extractRobotStatus()
679679 // I found no way to reliably get information if the robot is moving
680680 robot_status_resource_.in_motion = TriState::UNKNOWN;
681681
682- if ((safety_status_bits_ | in_error_bitset_).any ())
682+ if ((safety_status_bits_ & in_error_bitset_).any ())
683683 {
684684 robot_status_resource_.in_error = TriState::TRUE ;
685685 }
@@ -701,7 +701,7 @@ void HardwareInterface::extractRobotStatus()
701701 }
702702
703703 // the error code, if any, is not transmitted by this protocol
704- // it can and should be fetched seperately
704+ // it can and should be fetched separately
705705 robot_status_resource_.error_code = 0 ;
706706}
707707
You can’t perform that action at this time.
0 commit comments