mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +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 */
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user