Can I control PWM signals to esc directly via Mavlink?

So I’ve set up a test bench, that includes a load cell that I’m using to measure thrust from a quadcopter. I’ve been able to control PWM signals via the actuator panel within QGroundcontrol, by setting the aux1-4 to Constant Min and manually adjusting the Min value. Information can be found here. This works, but its not ideal and I was hoping I could set these values directly in software.

I’m familiar with QGroundControl, but I have never used Mavlink before. So I’m not sure if this is possible or where I would start looking. I did start looking at the pymavlink documentation and I don’t see anything about constant min/max

I would want to use Pymavlink to accomplish this.

The goal is to be able to read the thrust from the load sensor, and adjust the PWM so that I can maintain a consistent thrust value without any additional stablization from the flight controller.

I’m assuming you’re using PX4 (and not ArduPilot, otherwise ask in

You should be able to use the command MAV_CMD_DO_SET_ACTUATOR, e.g. in pymavlink.

Or in MAVSDK-Python it would be:

1 Like

Yes, correct, I am using PX4.

Thank you, I will dig into your recommendation!