Function rc_mav_get_msg#

Function Documentation#

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.