diff --git a/src/piper_control/piper_interface.py b/src/piper_control/piper_interface.py index 1d4f00d..6cedf13 100644 --- a/src/piper_control/piper_interface.py +++ b/src/piper_control/piper_interface.py @@ -934,9 +934,9 @@ def get_collision_protection(self) -> list[int]: - 1-8: Increasing detection thresholds """ self.piper.ArmParamEnquiryAndConfig(0x02, 0x00, 0x00, 0x00, 0x03) + time.sleep(0.01) # Add a small delay to let piper_sdk thread update the variable __feedback_crash_protection_level feedback = self.piper.GetCrashProtectionLevelFeedback() rating = feedback.crash_protection_level_feedback - return [ rating.joint_1_protection_level, rating.joint_2_protection_level,