mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 05:40:35 +08:00
Addressed C99 compiler issues of initializing variables in header and unused included statements.
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ float max(float val1, float val2)
|
||||
return (val1 > val2) ? val1 : val2;
|
||||
}
|
||||
|
||||
float constrain(float &val, float min, float max)
|
||||
float constrain(float val, float min, float max)
|
||||
{
|
||||
return (val < min) ? min : ((val > max) ? max : val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user