Arduino Mavlink Library – Monitor the autopilot heartbeat

Monitoring the autopilot heartbeat helps to diagnose an unresponsive flight controller, determine system status, and closes the feedback loop for monitoring functions. Use the mavlink_msg_heartbeat.h file in the common directory to see the parameters which the module supports.

Values included in the heartbeat:

Use the Arduino function below to receive and display the heartbeat variables. Run the function in a loop.

As you can see, monitoring the values which are included in the heartbeat can provide status updates to a companion computer to ensure system health. The heartbeat is especially handy for ensuring the autopilot is in the correct mode for navigating autonomously.