AP_OSD: distance total fix for slow vehicles

This commit is contained in:
Henry Wurzburg 2019-09-26 11:59:41 -05:00 committed by Andrew Tridgell
parent 2b0773c18b
commit 11c633be32
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ void AP_OSD::stats()
AP_AHRS &ahrs = AP::ahrs();
Vector2f v = ahrs.groundspeed_vector();
float speed = v.length();
if (speed < 2.0) {
if (speed < 0.178) {
speed = 0.0;
}
float dist_m = (speed * delta_ms)*0.001;