Function rc_mav_get_heartbeat#
Defined in File mavlink_udp_helpers.h
Function Documentation#
-
int rc_mav_get_heartbeat(mavlink_heartbeat_t *data)#
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.