I have an Rpi connected to px4 over ttyS0 and at present I can arm/disarm the drone with dronekit API.
In a test mode, I want to send a command (in python running on Rpi) to request the motor (without propeller attached) to spin at x% (x can take value between 10 and 100) but I have been struggling to find a way to do it.