Function rc_mav_get_heartbeat#

Function Documentation#

fetches the most recently received heartbeat packet of type MAVLINK_MSG_ID_HEARTBEAT

Parameters:

data[out] pointer to put heartbeat packet data

Returns:

0 on success, -1 on failure for example if no message has been received of type msg_id.