Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibration Error with MyCobot using Python Script #47

Open
jhordanhiro opened this issue Jan 22, 2024 · 0 comments
Open

Calibration Error with MyCobot using Python Script #47

jhordanhiro opened this issue Jan 22, 2024 · 0 comments

Comments

@jhordanhiro
Copy link

Description

I am attempting to calibrate a MyCobot robotic arm using a Python script (rasp_mycobot_test_gui.py) on a Raspberry Pi, but I encountered an error related to the speed parameter in the send_angle method.

Environment

  • MyCobot Model: MyCobot 280 Pi
  • Controller: Raspberry Pi
  • Python Version: 3.8
  • AtomMain v5.1

Steps to Reproduce

  1. Ran rasp_mycobot_test_gui.py script for calibration.
  2. Selected the calibration option in the GUI.
  3. Encountered an error during execution.

Expected Behavior

The script should calibrate the MyCobot robotic arm without errors, setting the servos to their initial positions.

Actual Behavior

Received an error related to the speed parameter in the send_angle method. The error message indicates that the speed value is not correct (should be in the range of 1 to 100), but a value of 0 is being passed.

Error Message

Exception in Tkinter callback
Traceback (most recent call last):
  ...
  File "rasp_mycobot_test_gui.py", line 216, in calibration_mycobot
    self.mycobot.send_angle(self.calibration_num, 0, 0)
  ...
pymycobot.error.MyCobotDataException: speed value not right! should be 1 ~ 100, the received speed is 0

Additional Information

  • I was following the calibration guide from Elephant Robotics: Calibration Guide.
  • The error seems to be occurring when setting the speed parameter to 0 in the send_angle method.

Suggested Solutions or Questions

  1. Is there a default speed value that should be used for calibration?
  2. Are there any known issues or updates in the code that I should be aware of?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant