mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 01:51:35 +08:00
Add cholesky decomp, Closes #30, and dynamic print buf
This commit is contained in:
@@ -29,13 +29,13 @@ Type wrap_pi(Type x)
|
||||
return x;
|
||||
}
|
||||
|
||||
while (x >= (Type)M_PI) {
|
||||
x -= (Type)(2.0 * M_PI);
|
||||
while (x >= Type(M_PI)) {
|
||||
x -= Type(2.0 * M_PI);
|
||||
|
||||
}
|
||||
|
||||
while (x < (Type)(-M_PI)) {
|
||||
x += (Type)(2.0 * M_PI);
|
||||
while (x < Type(-M_PI)) {
|
||||
x += Type(2.0 * M_PI);
|
||||
|
||||
}
|
||||
|
||||
@@ -43,4 +43,4 @@ Type wrap_pi(Type x)
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user