Skip to content

Commit d6ac179

Browse files
markusgftGiftthaler Markus (CR/PJ-AI-R31)
authored andcommitted
additional setter for ekf
1 parent ce56e89 commit d6ac179

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ct_optcon/include/ct/optcon/filter/ExtendedKalmanFilter.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ class ExtendedKalmanFilter final : public EstimatorBase<STATE_DIM, CONTROL_DIM,
5656
// return current covariance matrix
5757
const state_matrix_t& getCovarianceMatrix();
5858

59+
//! update Q matrix
60+
void setQ(const state_matrix_t& Q) { Q_ = Q; }
61+
62+
//! update R matrix
63+
void setR(const output_matrix_t& R) { R_ = R; }
64+
5965
protected:
6066
//! Filter Q matrix.
6167
state_matrix_t Q_;

0 commit comments

Comments
 (0)