mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 04:40:35 +08:00
mathlib delete floorf in favor of math.h
This commit is contained in:
committed by
Paul Riseborough
parent
340d85afc1
commit
cd34ab802d
@@ -70,16 +70,6 @@ float degrees(float radians)
|
||||
return (radians * 180.0f) / M_PI_F;
|
||||
}
|
||||
|
||||
int floorf(float input)
|
||||
{
|
||||
int res = int(input);
|
||||
if (res > input) {
|
||||
res--;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
} // namespace math
|
||||
|
||||
#endif /* ECL_STANDALONE */
|
||||
|
||||
Reference in New Issue
Block a user