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_set_callback

Function Documentation

int rc_mav_set_callback(int msg_id, void (*func)(void))

assign a callback function to be called when a particular message is received.

If a general callback function has been set with rc_mav_set_callback_all, this message-specific callback will be called after the general callback.

Parameters
  • msg_id[in] The message identifier

  • func[in] The callabck function pointer

Returns

0 on success, -1 on failure