mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:13:33 +08:00
Support gliding setpoints for autonomous soaring (#14643)
* Enable offboard gliding position setpoints Adds a capability to make the vehicle glide when given position setpoints. Gliding setpoints are enabled by setting POSITION_TARGET_TYPEMASK_Z_IGNORE, POSITION_TARGET_TYPEMASK_VZ_IGNORE, POSITION_TARGET_TYPEMASK_AZ_IGNORE on the typemask of position setpoints. Include zero cruising throttle Invalid setpoints with nan * Handle nans for curise_throttle
This commit is contained in:
@@ -907,7 +907,7 @@ Navigator::get_cruising_throttle()
|
||||
return _mission_throttle;
|
||||
|
||||
} else {
|
||||
return -1.0f;
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user