Main Content

fixedwingMissionParser

Generate trajectory for fixed-wing UAV from mission

Since R2022b

    Description

    The fixedwingMissionParser object parses the mission defined in a uavMission object and generates a flight trajectory as a fixedwingFlightTrajectory object.

    Creation

    Description

    parser = fixedwingMissionParser creates a fixed-wing UAV mission parser parser.

    example

    parser = fixedwingMissionParser(Name=Value) specifies properties using one or more name-value arguments.

    Properties

    expand all

    Transition radius for computing trajectory waypoints based on the mission definition, specified as a positive numeric scalar, in meters.

    Example: fixedwingMissionParser(mission,TransitionRadius=3)

    Takeoff pitch angle, specified as a positive numeric scalar, in degrees. This value specifies the angle between the flight path of the UAV and the horizontal plane during the takeoff action.

    Example: fixedwingMissionParser(mission,TakeoffPitch=8)

    Object Functions

    copyCopy mission parser
    parseGenerate trajectory in local NED frame

    Examples

    collapse all

    Create a UAV mission by using the flight plan stored in a .plan file and show the mission.

    mission = uavMission(PlanFile="flight.plan");
    show(mission);

    Figure contains an axes object. The axes object with xlabel East (m), ylabel North (m) contains 10 objects of type line, text.

    Create parsers for a multirotor UAV and a fixed-wing UAV.

    mrmParser = multirotorMissionParser(TransitionRadius=2,TakeoffSpeed=2);
    fwmParser = fixedwingMissionParser(TransitionRadius=15,TakeoffPitch=10);

    Generate one flight trajectory using each parser.

    mrmTraj = parse(mrmParser,mission);
    fwmTraj = parse(fwmParser,mission);

    Visualize the mission and the flight trajectories separately.

    figure
    subplot(1,2,1)
    show(mrmTraj);
    title("Multirotor Trajectory")
    axis square
    subplot(1,2,2)
    show(fwmTraj);
    title("Fixed-Wing Trajectory")
    axis square

    Figure contains 2 axes objects. Axes object 1 with title Multirotor Trajectory contains 422 objects of type patch, line. Axes object 2 with title Fixed-Wing Trajectory contains 428 objects of type patch, line.

    Plot the mission and flight trajectories overlapping.

    figure
    show(mission);
    hold on
    show(mrmTraj);
    hold off
    title("Mission Using Multirotor Trajectory")
    axis square

    Figure contains an axes object. The axes object with title Mission Using Multirotor Trajectory, xlabel East (m), ylabel North (m) contains 432 objects of type patch, line, text.

    show(mission);
    hold on
    show(fwmTraj);
    hold off
    title("Mission Using Fixed-Wing Trajectory")
    axis square

    Figure contains an axes object. The axes object with title Mission Using Fixed-Wing Trajectory, xlabel East (m), ylabel North (m) contains 438 objects of type patch, line, text.

    Version History

    Introduced in R2022b