mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 11:33:34 +08:00
ROS: Fixes for ROS build
The ROS build included some files that used isfinite vs PX4_ISFINITE. The AppState class also needed to be supported for ROS. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
__EXPORT float _wrap_pi(float bearing)
|
||||
{
|
||||
/* value is inf or NaN */
|
||||
if (!isfinite(bearing)) {
|
||||
if (!PX4_ISFINITE(bearing)) {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ __EXPORT float _wrap_pi(float bearing)
|
||||
__EXPORT float _wrap_2pi(float bearing)
|
||||
{
|
||||
/* value is inf or NaN */
|
||||
if (!isfinite(bearing)) {
|
||||
if (!PX4_ISFINITE(bearing)) {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ __EXPORT float _wrap_2pi(float bearing)
|
||||
__EXPORT float _wrap_180(float bearing)
|
||||
{
|
||||
/* value is inf or NaN */
|
||||
if (!isfinite(bearing)) {
|
||||
if (!PX4_ISFINITE(bearing)) {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ __EXPORT float _wrap_180(float bearing)
|
||||
__EXPORT float _wrap_360(float bearing)
|
||||
{
|
||||
/* value is inf or NaN */
|
||||
if (!isfinite(bearing)) {
|
||||
if (!PX4_ISFINITE(bearing)) {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user