mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 08:13:34 +08:00
pass Vector by const reference
This commit is contained in:
committed by
Mathieu Bresciani
parent
2657e4fc0c
commit
4ab3dd50c9
@@ -795,7 +795,7 @@ private:
|
|||||||
|
|
||||||
// calculate a synthetic value for the magnetometer Z component, given the 3D magnetomter
|
// calculate a synthetic value for the magnetometer Z component, given the 3D magnetomter
|
||||||
// sensor measurement
|
// sensor measurement
|
||||||
float calculate_synthetic_mag_z_measurement(Vector3f mag_meas, Vector3f mag_earth_predicted);
|
float calculate_synthetic_mag_z_measurement(const Vector3f& mag_meas, const Vector3f& mag_earth_predicted);
|
||||||
|
|
||||||
void stopGpsFusion();
|
void stopGpsFusion();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -997,7 +997,7 @@ void Ekf::limitDeclination()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float Ekf::calculate_synthetic_mag_z_measurement(Vector3f mag_meas, Vector3f mag_earth_predicted)
|
float Ekf::calculate_synthetic_mag_z_measurement(const Vector3f& mag_meas, const Vector3f& mag_earth_predicted)
|
||||||
{
|
{
|
||||||
// theoretical magnitude of the magnetometer Z component value given X and Y sensor measurement and our knowledge
|
// theoretical magnitude of the magnetometer Z component value given X and Y sensor measurement and our knowledge
|
||||||
// of the earth magnetic field vector at the current location
|
// of the earth magnetic field vector at the current location
|
||||||
|
|||||||
Reference in New Issue
Block a user