top of page

General Discussions

Public·224 members

Alejandro Ojeda
Alejandro Ojeda

Help to change the PetoiRobot servos speed

Hello, I am writing a program in Python to make the robot do pushup. I would like to change the speed of the servo motors in order to make the movement faster. Please see the code below. Could you please help me to find the wright command or provide any guidance. Thank you in advance



from PetoiRobot import *
openPort('COM6')
for index in range(10):
    sendLongCmd('L', [0, 0, 0, 0, 0, 0, 0, 0, 75, 75, 75, 75, -55, -55, 90, 90], 0.5)
    sendLongCmd('L', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 75, 90, 90, 90, 90], 0.5)

Regards,


Ale

103 Views

Hey, Thank you for your help. I could change the speed of the motors using " sendLongCmd " to send a text array commands for the movements and Using K to indicate that the motion is a behavior, see the picture below

I used the following text array and edited the parameters inside the red square to change the speed of the motors in each movement.

It worked perfect.


Thank you again


About

Discussion, maintenance, and community building!

bottom of page