Function rc_mav_set_callback#
- Defined in File mavlink_udp.h 
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