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_cleanup

Function Documentation

int rc_mav_cleanup(void)

Closes UDP port and stops network port listening thread.

This is a blocking function call that returns after the network port listening thread has exited and the UDP port has closed. If the thread fails to exit before timeout a warning message is displayed and the function returns -1 to indicate there was an issue. This should be called before your program exits.

Returns

0 on success, -1 on failure