Main Content

Quadcopter Visualization

You can visualize the simulation data using one of these ways:

  • Use the Simulation Data Inspector.

  • Use the Flight Instruments blocks.

  • Toggle between the different visualization variant subsystems.

    You can toggle between the different variant subsystems by changing the VSS_VISUALIZATION variable. These options include:

    • Scope — Use scopes to visualize the position and orientation of the vehicle by setting VSS_VISUALIZATION to 0. In addition, for the Trajectory Generator variant of the Command subsystem (VSS_COMMAND = 2). the XY graph can be used to visualize and compare the desired and actual trajectories of the vehicle. This figures shows the reference trajectory generated using the generateTraj function.

      actual trajectory

      This figure shows the XY plot showing the reference and actual trajectories.

      Generated trajectory

    • Workspace by setting VSS_VISUALIZATION to 1.

    • Flight Simulator Interfaces — This variant is a FlightGear animation. To use this animation, add a FlightGear-compatible model of the quadcopter to the project and set VSS_VISUALIZATION to 2. The software does not include this model.

    • Simulink® 3D Animation™Airport and Apple Hill scenes.

      • The Airport scene is available in the Aerospace Blockset™ and you can use it by setting the visualization variable VSS_VISUALIZATION to 3.

      • The Apple Hill scene is available in the Aerospace Blockset Interface for Unreal Engine® Projects. To use this scene, set the visualization variable VSS_VISUALIZATION to 4 and follow these steps:

The Aerospace Blockset uses Unreal Engine for 3D visualization. For details on installing the support package and using customized scenes, see Customize 3D Scenes for Aerospace Blockset Simulations.

Quadcopter in flight

See Also

| |

Topics