mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 01:51:35 +08:00
ekf2: GNSS yaw only reset test ratio for new samples
- otherwise external test ratio monitoring could trigger a false positive
This commit is contained in:
@@ -48,10 +48,11 @@
|
|||||||
|
|
||||||
void Ekf::updateGpsYaw(const gpsSample &gps_sample)
|
void Ekf::updateGpsYaw(const gpsSample &gps_sample)
|
||||||
{
|
{
|
||||||
auto &gnss_yaw = _aid_src_gnss_yaw;
|
|
||||||
resetEstimatorAidStatus(gnss_yaw);
|
|
||||||
|
|
||||||
if (PX4_ISFINITE(gps_sample.yaw)) {
|
if (PX4_ISFINITE(gps_sample.yaw)) {
|
||||||
|
|
||||||
|
auto &gnss_yaw = _aid_src_gnss_yaw;
|
||||||
|
resetEstimatorAidStatus(gnss_yaw);
|
||||||
|
|
||||||
// initially populate for estimator_aid_src_gnss_yaw logging
|
// initially populate for estimator_aid_src_gnss_yaw logging
|
||||||
|
|
||||||
// calculate the observed yaw angle of antenna array, converting a from body to antenna yaw measurement
|
// calculate the observed yaw angle of antenna array, converting a from body to antenna yaw measurement
|
||||||
|
|||||||
Reference in New Issue
Block a user