Browse Source
When using wrap_180_cd() we are adding a small float (180 * 100) to a possibly big number. This may lose float precision as illustrated by the unit test failing: OUT: ../../libraries/AP_Math/tests/test_math.cpp:195: Failure OUT: Value of: wrap_180_cd(-3600000000.f) OUT: Actual: -80 OUT: Expected: 0.f OUT: Which is: 0master
2 changed files with 27 additions and 12 deletions
Loading…
Reference in new issue