This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_mav_ns_since_last_msg

Function Documentation

int64_t rc_mav_ns_since_last_msg(int msg_id)

Fetches the number of nanoseconds since the last message of type msg_id has been received.

Parameters

msg_id[in] The message identifier of the packet type to check

Returns

Returns the number of nanoseconds since the last message of type msg_id has been received. Returns -1 on failure, for example if no message has been received of type msg_id.