Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: The MathWorks, Inc.

Rating No ratings yet

UAV Toolbox Examples Visualize and Playback MAVLink Flight Log Flight Instrument Gauge Visualization for a Drone Visualize Custom Flight Log Tuning Waypoint Follower for Fixed-Wing UAV Approximate High-Fidelity UAV model with UAV Guidance Model block Motion Planning with RRT for Fixed-Wing UAV UAV Package Delivery UAV Scenario Tutorial Tune UAV Parameters Using MAVLink Parameter Protocol Exchange Data for MAVLink Microservices like Mission Protocol and Parameter Protocol Using Simulink 3D Simulation – User's Guide Unreal Engine Simulation for Unmanned Aerial Vehicles Unreal Engine Simulation Blocks Algorithm Testing and Visualization Unreal Engine Simulation Environment Requirements and Limitations Software Requirements Minimum Hardware Requirements Limitations How Unreal Engine Simulation for UAVs Works Communication with 3D Simulation Environment Block Execution Order Coordinate Systems for Unreal Engine Simulation in UAV Toolbox Earth-Fixed (Inertial) Coordinate System Body (Non-Inertial) Coordinate System Unreal Engine World Coordinate System Choose a Sensor for Unreal Engine Simulation Simulate Simple Flight Scenario and Sensor in Unreal Engine Environment Depth and Semantic Segmentation Visualization Using Unreal Engine Simulation Customize Unreal Engine Scenes for UAVs Install Support Package for Customizing Scenes Verify Software and Hardware Requirements Install Support Package Set Up Scene Customization Using Support Package Customize Unreal Engine Scenes Using Simulink and Unreal Editor Open Unreal Editor from Simulink Reparent Actor Blueprint Create or Modify Scenes in Unreal Editor Run Simulation Package Custom Scenes into Executable Package Scene into Executable Using Unreal Engine Apply Semantic Segmentation Labels to Custom Scenes

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on reference for engineers who already know MATLAB/Simulink and want to model, simulate, and visualize UAV behavior—from flight-log playback and waypoint tuning to Unreal Engine 3D scenes—without building a hardware rig first. Best for practitioners who learn by running examples rather than reading theory. 【Book Arc】 - **Opening (~0%–10%)**: Example-driven entry point. Flight-log import and playback (MAVLink TLOG, ULOG), flight-instrument gauge visualization, and custom plots establish the "read a log, see the flight" workflow before any simulation. - **Early (~10%–30%)**: Deepens log analysis—signal mapping tables, unit/frame conventions, extracting attitude/position/velocity/airspeed, and building custom signal mappings and FFT-style plots. Solves the "what do these fields mean and how do I trust them" problem. - **Middle (~30%–55%)**: Moves into control and model fidelity. Waypoint follower tuning for fixed-wing UAVs, heading control, and approximating a high-fidelity plant with the UAV Guidance Model block—including a low-fidelity-first tuning strategy and RRT motion planning. - **Late (~55%–75%)**: Transitions to 3D simulation with Unreal Engine: how the environment communicates with Simulink, block execution order, and the three coordinate systems (Earth-fixed, body, Unreal world). Solves the "why doesn't my model line up in the scene" problem. - **Ending (~75%–100%)**: Practical scene work—sensor selection, simple flight-and-sensor scenarios, depth/semantic-segmentation visualization, installing the scene-customization support package, editing scenes in Unreal Editor, and packaging custom scenes into executables. 【Book Arc note】The excerpts are heavily weighted toward the examples chapter and the 3D simulation guide; the arc above reflects that emphasis. 【Key Takeaways】 - **Logs are the front door to UAV analysis** (Opening): MAVLink and ULOG files are imported, mapped to named signals with units and reference frames, and replayed over UDP at a controlled rate—mirroring real hardware publishing. This is the fastest way to understand a flight after the fact. - **Signal mapping is where correctness lives** (Early): The `flightLogSignalMapping` tables expose signal names, fields, and units; mismatched units or frames silently corrupt gauge output, so inspecting `info` before extracting is essential, not optional. - **Custom analysis is a first-class workflow** (Early): You can register new signals via function handles (e.g., flagging accelerations above a threshold) and add custom plots, including FFT/periodogram views—turning the toolbox into a lightweight flight-data analysis environment. - **Fidelity is a dial, not a fixed cost** (Middle): The UAV Guidance Model block approximates a high-fidelity fixed-wing plant; tuning gains on the cheap model first (critically damped second-order PD, settling-time-based) then validating on the high-fidelity variant is the recommended loop—and it runs both directions. - **Waypoint following decomposes into understandable pieces** (Middle): A waypoint follower computes desired heading from pose, lookahead distance, and waypoint list; a proportional heading controller regulates roll under coordinated flight; visualization approximates pitch with flight-path angle in windless conditions. - **Planned paths and flown paths diverge for real reasons** (Middle): 3D Dubins paths assume instantaneous roll changes, while actual dynamics lag—so small tracking errors are expected, not bugs. Knowing this prevents over-tuning. - **3D simulation hinges on coordinate discipline** (Late): Earth-fixed, body, and Unreal world frames coexist; understanding communication with the simulation environment and block execution order is prerequisite to debugging any scene. - **Scenes are customizable end-to-end** (Ending): From installing the support package through reparenting actor blueprints in Unreal Editor, running the simulation, and packaging scenes into executables—plus applying semantic segmentation labels to custom scenes for perception work. 【Reading Tips】 - **Skim the examples chapter first, then return**: Read the opening examples for workflow shape, but treat the long signal-mapping tables as reference—look them up when a specific field or unit confuses you. - **Deep-read the fidelity and coordinate-system sections**: The low/high-fidelity tuning loop and the three-frame coordinate discussion are the conceptual load-bearing walls; everything else is procedure. - **Run, don't just read**: These are executable examples with sliders, `sim` calls, and build logs. The value is in observing behavior changes (lookahead distance, heading gain) rather than memorizing parameters. - **Watch for version and environment constraints**: Requirements, hardware minimums, and limitations for Unreal Engine simulation are stated explicitly—check them before investing time in scene customization. - **Take away the loop, not the numbers**: The transferable skill is "tune cheap, validate expensive" and "inspect units before plotting," not the specific gain values shown. 【Coverage Limits】 This guide is based on stratified excerpts concentrated in the examples chapter and the 3D simulation guide; the excerpts do not cover the full reference material, so block-by-block API details and any chapters beyond these sections are not summarized here.
Excerpt 1
to Custom Scenes UAV Toolbox User's Guide R2020b Contents UAV Toolbox Examples 1 Visualize and Playback MAVLink Flight Log . . . . . . . . . . . . . . . . ....
View in text
Page 9
"m/s, m/s, m/s" "Mag" true "MagX, MagY, MagZ" "Gs, Gs, Gs" Extract Signals of Interest To visualize the drone flight using instrument gauges, extract the att...
View in text
Page 16
"m/s, m/s, m/s" "LocalNED" false "X, Y, Z" "m, m, m" "LocalNEDTarget" false "XTarget, YTarget, ZTarget" "m, m, m" "LocalNEDVel" false "VX, VY, VZ" "m/s, m/s,...
View in text
Excerpt 4
lityHeight = Height.Data(:); lowFidelityTime = Height.Time; assignin(plantDataSet, 'useHighFidelity', 1); sim(stepModel); ### Starting serial model reference...
View in text
Excerpt 5
sensor data as the UAV flies the mission in the environment. To modify the model configuration, click the Obstacle Avoidance shortcut. A scope appears that s...
View in text
Excerpt 6
service in MAVLink allows a Ground Control Station (GCS) to communicate with a drone to send and receive mission information needed to execute a mission. The...
View in text
Excerpt 7
ation framework that you can use to model UAV algorithms in Simulink and visualize their performance in a virtual simulation environment. This environment us...
View in text
Excerpt 8
c Segmentation Visualization Using Unreal Engine Simulation Depth and Semantic Segmentation Visualization Using Unreal Engine Simulation This example shows h...
View in text
Tags
AI categories
MatlabProgrammingData
Publisher: The MathWorks, Inc.
Publish Year: 2020
Language: English
Pages: 124
File Format: PDF
File Size: 8.0 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…