mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:21:35 +08:00
Rename isfinite to is_finite to avoid name conflicts.
This commit is contained in:
@@ -241,7 +241,7 @@ bool inv(const SquareMatrix<Type, M> & A, SquareMatrix<Type, M> & inv)
|
|||||||
//check sanity of results
|
//check sanity of results
|
||||||
for (size_t i = 0; i < M; i++) {
|
for (size_t i = 0; i < M; i++) {
|
||||||
for (size_t j = 0; j < M; j++) {
|
for (size_t j = 0; j < M; j++) {
|
||||||
if (!isfinite(P(i,j))) {
|
if (!is_finite(P(i,j))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace matrix
|
|||||||
{
|
{
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
bool isfinite(Type x) {
|
bool is_finite(Type x) {
|
||||||
#if defined (__PX4_NUTTX) || defined (__PX4_QURT)
|
#if defined (__PX4_NUTTX) || defined (__PX4_QURT)
|
||||||
return PX4_ISFINITE(x);
|
return PX4_ISFINITE(x);
|
||||||
#else
|
#else
|
||||||
@@ -25,7 +25,7 @@ bool isfinite(Type x) {
|
|||||||
template<typename Type>
|
template<typename Type>
|
||||||
Type wrap_pi(Type x)
|
Type wrap_pi(Type x)
|
||||||
{
|
{
|
||||||
if (!isfinite(x)) {
|
if (!is_finite(x)) {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,4 +13,3 @@
|
|||||||
#include "Scalar.hpp"
|
#include "Scalar.hpp"
|
||||||
#include "Quaternion.hpp"
|
#include "Quaternion.hpp"
|
||||||
#include "AxisAngle.hpp"
|
#include "AxisAngle.hpp"
|
||||||
#include "helper_functions.hpp"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user