mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 12:30:35 +08:00
clang-tidy fix mathlib headers and format
This commit is contained in:
@@ -58,6 +58,7 @@ bool __EXPORT greater_than(float a, float b)
|
||||
{
|
||||
if (a > b) {
|
||||
return true;
|
||||
|
||||
} else {
|
||||
printf("not a > b ->\n\ta: %12.8f\n\tb: %12.8f\n", double(a), double(b));
|
||||
return false;
|
||||
@@ -68,6 +69,7 @@ bool __EXPORT less_than(float a, float b)
|
||||
{
|
||||
if (a < b) {
|
||||
return true;
|
||||
|
||||
} else {
|
||||
printf("not a < b ->\n\ta: %12.8f\n\tb: %12.8f\n", double(a), double(b));
|
||||
return false;
|
||||
@@ -78,6 +80,7 @@ bool __EXPORT greater_than_or_equal(float a, float b)
|
||||
{
|
||||
if (a >= b) {
|
||||
return true;
|
||||
|
||||
} else {
|
||||
printf("not a >= b ->\n\ta: %12.8f\n\tb: %12.8f\n", double(a), double(b));
|
||||
return false;
|
||||
@@ -88,6 +91,7 @@ bool __EXPORT less_than_or_equal(float a, float b)
|
||||
{
|
||||
if (a <= b) {
|
||||
return true;
|
||||
|
||||
} else {
|
||||
printf("not a <= b ->\n\ta: %12.8f\n\tb: %12.8f\n", double(a), double(b));
|
||||
return false;
|
||||
@@ -122,6 +126,7 @@ void __EXPORT float2SigExp(
|
||||
} else {
|
||||
exp = floor(exp);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
sig = num;
|
||||
|
||||
Reference in New Issue
Block a user