Skip to content

Commit

Permalink
AP_NavEKF: Add GPS glitching monitor to EKF status report
Browse files Browse the repository at this point in the history
  • Loading branch information
priseborough authored and jschall committed Jun 18, 2015
1 parent ff81588 commit 905e08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_NavEKF/AP_NavEKF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4834,6 +4834,7 @@ void NavEKF::getFilterStatus(nav_filter_status &status) const
status.flags.takeoff_detected = takeOffDetected; // takeoff for optical flow navigation has been detected
status.flags.takeoff = expectGndEffectTakeoff; // The EKF has been told to expect takeoff and is in a ground effect mitigation mode
status.flags.touchdown = expectGndEffectTouchdown; // The EKF has been told to detect touchdown and is in a ground effect mitigation mode
status.flags.gps_glitching = !gpsAccuracyGood; // The GPS is glitching
}

// send an EKF_STATUS message to GCS
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_NavEKF/AP_Nav_Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ union nav_filter_status {
uint16_t takeoff_detected : 1; // 10 - true if optical flow takeoff has been detected
uint16_t takeoff : 1; // 11 - true if filter is compensating for baro errors during takeoff
uint16_t touchdown : 1; // 12 - true if filter is compensating for baro errors during touchdown
uint16_t using_gps : 1; // 13 - true if we are using GPS position
uint16_t gps_glitching : 1; // 14 - true if the the GPS is glitching
} flags;
uint16_t value;
};
Expand Down

0 comments on commit 905e08d

Please sign in to comment.