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