This example shows how to use UAV Toolbox and ROS Toolbox to design a waypoint follower for a quadcopter that uses DJI N3 Autopilot. This example uses DJI Onboard SDK which provides a ROS wrapper that is used to interface with the ROS Toolbox. In this example, you will learn how to:
1. Configure a Simulink model which defines a quadcopter mission of a DJI N3 Flight Controller by using a set of waypoints, by using UAV Toolbox and ROS Toolbox
2. Start DJI Onboard ROS SDK on a Compute board
3. Set up the required custom messages using ROS Toolbox on the host computer
4. Simulate and deploy the Simulink model on the Compute board
Download and follow the steps mentioned in Setup Document.docx to set up the Host computer and your compute board.
After the above setup is done open the live script DJIROSWayPointFollowerExample.mlx from MATLAB and follow the steps.
Abhishek GS (2021). DJI-ROS-Simulink (https://github.com/mathworks/DJI-ROS-Simulink/releases/tag/v1.0.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!