AP_Devo_Telem: add floating point constant designators

This commit is contained in:
Peter Barker 2019-04-05 09:07:18 +11:00 committed by Tom Pittenger
parent 5455d27e84
commit 8c68ff2e91
1 changed files with 2 additions and 2 deletions

View File

@ -53,13 +53,13 @@ uint32_t AP_DEVO_Telem::gpsDdToDmsFormat(float ddm)
int32_t deg = (int32_t)ddm;
float mm = (ddm - deg) * 60.0f;
mm = ((float)deg * 100.0f + mm) /100.0;
mm = ((float)deg * 100.0f + mm) /100.0f;
if ((mm < -180.0f) || (mm > 180.0f)) {
mm = 0.0f;
}
return mm * 1.0e7;
return mm * 1.0e7f;
}