ekf: pass a float by copy instead of a constant ref

This commit is contained in:
bresch
2022-02-02 17:43:25 -05:00
committed by Daniel Agar
parent 3077f27821
commit 917910f3e2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -653,7 +653,7 @@ private:
void resetHorizontalPositionTo(const Vector2f &new_horz_pos);
void resetVerticalPositionTo(const float &new_vert_pos);
void resetVerticalPositionTo(float new_vert_pos);
void resetHeight();
+1 -1
View File
@@ -229,7 +229,7 @@ void Ekf::resetHorizontalPositionTo(const Vector2f &new_horz_pos)
_state_reset_status.posNE_counter++;
}
void Ekf::resetVerticalPositionTo(const float &new_vert_pos)
void Ekf::resetVerticalPositionTo(const float new_vert_pos)
{
const float old_vert_pos = _state.pos(2);
_state.pos(2) = new_vert_pos;