Function rc_kalman_free#

Function Documentation#

int rc_kalman_free(rc_kalman_t *kf)#

Frees the memory allocated by a kalman filter’s matrices and vectors. Also resets all values to 0 like rc_kalman_empty().

Parameters:

kf – pointer to user’s rc_kalman_t struct

Returns:

0 on success or -1 on failure.