mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
880f130670
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: 0 |
||
---|---|---|
.. | ||
test_math.cpp | ||
wscript |