Function rc_kalman_alloc_ekf#

Function Documentation#

int rc_kalman_alloc_ekf(rc_kalman_t *kf, rc_matrix_t Q, rc_matrix_t R, rc_matrix_t Pi)#

Allocates memory for a Kalman filter of given dimensions.

Parameters:
  • kf – pointer to struct to be allocated

  • Q[in] Process noise covariance, can be updated later

  • R[in] Measurement noise covariance, can be updated later

  • Pi[in] Initial P matrix

Returns:

0 on success, -1 on failure