Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Add missing const modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and bresch committed Dec 20, 2020
1 parent a8e0e82 commit df7f261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EKF/EKFGSF_yaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ float EKFGSF_yaw::gaussianDensity(const uint8_t model_index) const
return _m_2pi_inv * sqrtf(_ekf_gsf[model_index].S_det_inverse) * expf(-0.5f * normDist);
}

bool EKFGSF_yaw::getLogData(float *yaw_composite, float *yaw_variance, float yaw[N_MODELS_EKFGSF], float innov_VN[N_MODELS_EKFGSF], float innov_VE[N_MODELS_EKFGSF], float weight[N_MODELS_EKFGSF])
bool EKFGSF_yaw::getLogData(float *yaw_composite, float *yaw_variance, float yaw[N_MODELS_EKFGSF], float innov_VN[N_MODELS_EKFGSF], float innov_VE[N_MODELS_EKFGSF], float weight[N_MODELS_EKFGSF]) const
{
if (_ekf_gsf_vel_fuse_started) {
*yaw_composite = _gsf_yaw;
Expand Down Expand Up @@ -532,7 +532,7 @@ Matrix3f EKFGSF_yaw::ahrsPredictRotMat(const Matrix3f &R, const Vector3f &g)
return ret;
}

bool EKFGSF_yaw::getYawData(float *yaw, float *yaw_variance)
bool EKFGSF_yaw::getYawData(float *yaw, float *yaw_variance) const
{
if(_ekf_gsf_vel_fuse_started) {
*yaw = _gsf_yaw;
Expand Down
4 changes: 2 additions & 2 deletions EKF/EKFGSF_yaw.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class EKFGSF_yaw
float yaw[N_MODELS_EKFGSF],
float innov_VN[N_MODELS_EKFGSF],
float innov_VE[N_MODELS_EKFGSF],
float weight[N_MODELS_EKFGSF]);
float weight[N_MODELS_EKFGSF]) const;

// get yaw estimate and the corresponding variance
// return false if no yaw estimate available
bool getYawData(float *yaw, float *yaw_variance);
bool getYawData(float *yaw, float *yaw_variance) const;

private:

Expand Down

0 comments on commit df7f261

Please sign in to comment.