Getting setpoints and controllers outputs via MAVLink


I would like to know if I can get setpoints (position, velocity, attitude, attitude rates), and the controllers outputs (e.g. output of the position controller, velocity controller, attitude controller, attitude rates controller) in real time via MAVLink streams. This would be very useful for some research I am doing regarding online and real-time control tuning.

@TSC21 any hints?


I believe this is already available. For example,

@Jaeyoung-Lim thanks!
I will check if I can get the following messages through MAVROS or MAVSDK.


@Mzahana On mavrosm I am pretty sure you already have it except for the ACTUATOR_CONTROL_TARGET

@Jaeyoung-Lim thanks for the reply. I actually found out that mavros has them all including ACTUATOR_CONTROL_TARGET (

I just need to figure out how to increase their publication rates as they currently seem to be limited to 10Hz (not sure if the limit is on px4 side or mavros side)

You can do this in Px4 src/modules/mavlink/mavlink_main.cpp starting from around Line nr 1506 there are different streams for every mode, so you can higher the update rate there