mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:23:34 +08:00
Remove output argument from calcEarthRateNed
This commit is contained in:
committed by
Mathieu Bresciani
parent
9e6d27fafb
commit
a21a7cd5b9
+4
-4
@@ -791,11 +791,11 @@ void Ekf::constrainStates()
|
||||
}
|
||||
|
||||
// calculate the earth rotation vector
|
||||
void Ekf::calcEarthRateNED(Vector3f &omega, float lat_rad) const
|
||||
Vector3f Ekf::calcEarthRateNED(float lat_rad) const
|
||||
{
|
||||
omega(0) = CONSTANTS_EARTH_SPIN_RATE * cosf(lat_rad);
|
||||
omega(1) = 0.0f;
|
||||
omega(2) = -CONSTANTS_EARTH_SPIN_RATE * sinf(lat_rad);
|
||||
return Vector3f{CONSTANTS_EARTH_SPIN_RATE * cosf(lat_rad),
|
||||
0.0f,
|
||||
-CONSTANTS_EARTH_SPIN_RATE * sinf(lat_rad)};
|
||||
}
|
||||
|
||||
void Ekf::getGpsVelPosInnov(float hvel[2], float &vvel, float hpos[2], float &vpos)
|
||||
|
||||
Reference in New Issue
Block a user