mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
parent
e375e02974
commit
19a2b4ec31
@ -48,10 +48,11 @@
|
||||
|
||||
void Ekf::updateGpsYaw(const gpsSample &gps_sample)
|
||||
{
|
||||
auto &gnss_yaw = _aid_src_gnss_yaw;
|
||||
resetEstimatorAidStatus(gnss_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
|
||||
|
||||
// calculate the observed yaw angle of antenna array, converting a from body to antenna yaw measurement
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user