mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
AP_GPS: improve reporting of offset vs reported-distance inaccuracy
This commit is contained in:
parent
f673617b54
commit
cb2f764700
@ -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)) {
|
if ((offset_dist - reported_distance) > (min_dist * permitted_error_length_pct)) {
|
||||||
// the magnitude of the vector is much further then we were expecting
|
// the magnitude of the vector is much further then we were expecting
|
||||||
Debug("Exceeded the permitted error margin %f > %f",
|
Debug("Offset=%.2f vs reported-distance=%.2f (max-delta=%.2f)",
|
||||||
(double)(offset_dist - reported_distance), (double)(min_dist * permitted_error_length_pct));
|
offset_dist, reported_distance, (double)(min_dist * permitted_error_length_pct));
|
||||||
goto bad_yaw;
|
goto bad_yaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user