Skip to content

Commit

Permalink
AP_GPS: improve reporting of backend inaccurancy
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 22, 2024
1 parent 4fca2ee commit 5fe7f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_GPS/GPS_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ bool AP_GPS_Backend::calculate_moving_base_yaw(AP_GPS::GPS_State &interim_state,

if ((offset_dist - reported_distance) > (min_dist * permitted_error_length_pct)) {
// the magnitude of the vector is much further then we were expecting
Debug("Exceeded the permitted error margin %f > %f",
(double)(offset_dist - reported_distance), (double)(min_dist * permitted_error_length_pct));
Debug("Offset=%.2f vs reported-distance=%.2f (max-delta=%.2f)",
offset_dist, reported_distance, (double)(min_dist * permitted_error_length_pct));
goto bad_yaw;
}

Expand Down

0 comments on commit 5fe7f3e

Please sign in to comment.