mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 05:53:34 +08:00
Define M_PI float, change logical and to &&
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
|
||||
#include "math.hpp"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI (3.14159265358979323846f)
|
||||
#endif
|
||||
|
||||
namespace matrix
|
||||
{
|
||||
|
||||
|
||||
+1
-1
@@ -371,7 +371,7 @@ public:
|
||||
setZero();
|
||||
Matrix<Type, M, N> &self = *this;
|
||||
|
||||
for (size_t i = 0; i < M and i < N; i++) {
|
||||
for (size_t i = 0; i < M && i < N; i++) {
|
||||
self(i, i) = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user