mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 21:33:33 +08:00
VTOL Takeoff: Use VehicleCommand specified heading for VTOL transition (#24040)
* Use VehicleCommand heading for VTOL transition * options for param2 of vehicle_cmd_nav_vtol_takeoff
This commit is contained in:
@@ -652,6 +652,10 @@ void Navigator::run()
|
||||
|
||||
_vtol_takeoff.setTransitionAltitudeAbsolute(cmd.param7);
|
||||
|
||||
if (std::fabs(cmd.param2 - 3.0f) < FLT_EPSILON) { // Specified transition direction
|
||||
_vtol_takeoff.setTransitionDirection(cmd.param4);
|
||||
}
|
||||
|
||||
// after the transition the vehicle will establish on a loiter at this position
|
||||
_vtol_takeoff.setLoiterLocation(matrix::Vector2d(cmd.param5, cmd.param6));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user