mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 18:23:34 +08:00
Use isAllFinite() in all places that check finiteness on entire vectors or matrices
This commit is contained in:
@@ -292,7 +292,7 @@ inline bool isFinite(const float &value)
|
||||
|
||||
inline bool isFinite(const matrix::Vector3f &value)
|
||||
{
|
||||
return PX4_ISFINITE(value(0)) && PX4_ISFINITE(value(1)) && PX4_ISFINITE(value(2));
|
||||
return value.isAllFinite();
|
||||
}
|
||||
|
||||
} /* namespace math */
|
||||
|
||||
Reference in New Issue
Block a user