Home        Store        Learn        Blog

How can motors be controlled by the Python program?

Hi. I am working on a program to control the motors of BlueROV.
The program uses python, dronekit and pymavlink. However, I have not been able to get the motor to work!

Now, Computer and BlueROV connect Fathom-X Tether Interface. and Arm/disarm and flight mode can be changed with python.

For motor control, I tried the following code↓
https://www.ardusub.com/developers/pymavlink.html(Send RC)
https://dronekit-python.readthedocs.io/en/latest/guide/copter/guided_mode.html( Velocity control)

Can you give me the code and commands to run the motor? Thank you.

Hi @tatsu.west,

What is your goal? the “Send RC” example replaces the joystick, and doesn’t directly control the thrusters.
Velocity control in Guided mode won’t work without external positioning (that will probably require a dvl).

Hi willian, Thank you for responding.

I want the drone to travel on the line connecting the start point and the goal point without error.
The drone is gives control commands to move forward and yaw rotation at regular intervals to keep it from deviating from the route.

Also progress has been made since last time, and it is now possible to move the thrusters with SendRC example.
Now that RC input is possible, I think the above can be achieved. What do you think?

Please let me know if you have any other methods or advice. Thanks.