use PX4_ISFINITE

This commit is contained in:
Roman
2015-06-01 11:16:32 +02:00
parent 64e8419ab0
commit 9ff89ffe5c
+2 -2
View File
@@ -533,7 +533,7 @@ Mission::heading_sp_update()
/* Don't change setpoint if last and current waypoint are not valid */ /* Don't change setpoint if last and current waypoint are not valid */
if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid || if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid ||
!isfinite(_on_arrival_yaw)) { !PX4_ISFINITE(_on_arrival_yaw)) {
return; return;
} }
@@ -581,7 +581,7 @@ Mission::altitude_sp_foh_update()
/* Don't change setpoint if last and current waypoint are not valid */ /* Don't change setpoint if last and current waypoint are not valid */
if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid || if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid ||
!isfinite(_mission_item_previous_alt)) { !PX4_ISFINITE(_mission_item_previous_alt)) {
return; return;
} }