How to send “ekf2 stop” from onboard companion computer via MAVROS/MAVLink (without QGroundControl)?

Hi everyone,

I’m running PX4 v1.15.4 and want to stop the EKF2 estimator programmatically from my onboard companion computer (ROS + MAVROS), instead of manually typing “ekf2 stop” in QGroundControl’s MAVLink Console (NSH).

Is there any official or recommended way to achieve this using MAVROS or raw MAVLink messages?

Specifically looking for:

  • A MAVROS service/topic that can directly send shell commands like “ekf2 stop”, or

  • Any other clean method supported in v1.15.4 (e.g., a dedicated MAVLink message, parameter, or command)

A working Python (MAVROS) or C++ example would be perfect!

Thanks a lot!