V2Action 怎么添加飞机的 AircraftYaw 和 heading 动作,比如设置32度?
CompletedV2Action 怎么添加飞机的 AircraftYaw 和 heading 动作,比如设置32度?
-
创建航点时,通过 setHeading 方法设置 heading 值,并且需要设置 headingMode 为 WAYPOINT_CUSTOM,只有在这个模式下,heading 属性才会生效。 WaypointActuator waypointActionActuator = new WaypointActuator.Builder() .setActuatorType(ActionTypes.ActionActuatorType.AIRCRAFT_CONTROL) .setAircraftControlActuatorParam(new WaypointAircraftControlParam.Builder() .setAircraftControlType(ActionTypes.AircraftControlType.ROTATE_YAW) .setRotateYawParam(new WaypointAircraftControlRotateYawParam.Builder() .setYawAngle(32) .setRelative(true) .setDirection(WaypointV2MissionTypes.WaypointV2TurnMode.CLOCKWISE) .build()) .build()) .build();
Please sign in to leave a comment.
Comments
1 comment