Function rc_mav_get_msg#
Defined in File mavlink_udp.h
Function Documentation#
-
int rc_mav_get_msg(int msg_id, mavlink_message_t *msg)#
Fetches the last received message of type msg_id.
- Parameters:
msg_id – [in] The message identifier to fetch
msg – [out] place to write to message struct to
- Returns:
returns 0 on success. Returns -1 on failure, for example if no message of type msg_id has been received.