mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 02:39:06 +08:00
use PX4_ISFINITE
This commit is contained in:
parent
64e8419ab0
commit
9ff89ffe5c
@ -533,7 +533,7 @@ Mission::heading_sp_update()
|
||||
|
||||
/* Don't change setpoint if last and current waypoint are not valid */
|
||||
if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid ||
|
||||
!isfinite(_on_arrival_yaw)) {
|
||||
!PX4_ISFINITE(_on_arrival_yaw)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -581,7 +581,7 @@ Mission::altitude_sp_foh_update()
|
||||
|
||||
/* Don't change setpoint if last and current waypoint are not valid */
|
||||
if (!pos_sp_triplet->previous.valid || !pos_sp_triplet->current.valid ||
|
||||
!isfinite(_mission_item_previous_alt)) {
|
||||
!PX4_ISFINITE(_mission_item_previous_alt)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user