How to directly control Motors from python script on Raspberry Pi


We are currently trying to run commands that control the motors of our quadcopter directly from a python script. We know that we can send pwm commands to control the motors, however, we are not certain about what would be the easiest way of doing that with the Navio2 and the provided code.

  1. Are there any python scripts out there that we could look at that do something in the same direction with the Navio2 i.e. spin the motors at a certain RPM individually.

  2. Are there library functions that allow us to increase/decrease throttle, roll, pitch, yaw, directly from the python script?

Our ultimate goal is to have the drone perform tasks independent of any Ground Control System.

Thank you in advance.


You should have a look at DroneKit