mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 01:41:36 +08:00
use PX4_ISFINITE
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user