AP_Math: add floating point constant designators

This commit is contained in:
Peter Barker 2019-04-05 09:07:54 +11:00 committed by Tom Pittenger
parent ef860db558
commit 39ae285a7f
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ void MatrixN<T,N>::force_symmetry(void)
{
for (uint8_t i = 0; i < N; i++) {
for (uint8_t j = 0; j < (i - 1); j++) {
v[i][j] = (v[i][j] + v[j][i]) * 0.5;
v[i][j] = (v[i][j] + v[j][i]) * 0.5f;
v[j][i] = v[i][j];
}
}