refactor(flight_mode_manager): pass follow_target_s by const reference

This commit is contained in:
Jacob Dahl
2026-03-15 12:05:00 -08:00
committed by Jacob Dahl
parent 37745a97d3
commit 7d9484e7a6
2 changed files with 2 additions and 2 deletions
@@ -225,7 +225,7 @@ bool TargetEstimator::measurement_can_be_fused(const Vector3f &current_measureme
// return measurement_valid;
}
void TargetEstimator::measurement_update(follow_target_s follow_target)
void TargetEstimator::measurement_update(const follow_target_s &follow_target)
{
_fusion_count++;
// Decompose follow_target message into the individual measurements for position and velocity
@@ -157,7 +157,7 @@ protected:
*
* @param follow_target GPS data last received from target
*/
void measurement_update(follow_target_s follow_target);
void measurement_update(const follow_target_s &follow_target);
/**
* Perform prediction step based on simple position-velocity-acceleration model of a point mass