mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
refactor(flight_mode_manager): pass follow_target_s by const reference
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ bool TargetEstimator::measurement_can_be_fused(const Vector3f ¤t_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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user