User Tools

Site Tools


simulink_quadcopter_simulation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
simulink_quadcopter_simulation [2025/04/26 21:18] yehyunsimulink_quadcopter_simulation [2025/04/26 22:21] (current) yehyun
Line 5: Line 5:
 **Date:** Last modified on <04/21/2025> **Date:** Last modified on <04/21/2025>
 \\ \\
-**Keywords:** Lego+**Keywords:** quadcopter, simulink, simulation, motion capture
 \\ \\
 \\ \\
Line 22: Line 22:
   * Deploy algorithms to a real Parrot Minidrone   * Deploy algorithms to a real Parrot Minidrone
   * Validate the results using motion capture data   * Validate the results using motion capture data
-  * Modify the simulation for new drone specifications 
 \\ \\
 ---- ----
Line 183: Line 182:
 In this section, we will apply the simulation to a real drone (Parrot Mambo) and collect flight data using a motion capture system. In this section, we will apply the simulation to a real drone (Parrot Mambo) and collect flight data using a motion capture system.
 By doing this, we can verify whether the drone moves as intended based on the input commands given in Simulink. By doing this, we can verify whether the drone moves as intended based on the input commands given in Simulink.
- +\\  
 +\\ 
 ==== 5.1 Deploying the Model to the Parrot Mambo Drone ==== ==== 5.1 Deploying the Model to the Parrot Mambo Drone ====
  
Line 226: Line 225:
 The drone will take off and follow the pre-programmed input commands. The drone will take off and follow the pre-programmed input commands.
 After the flight is completed, the interface will show additional options to download the Flight Log and MAT File containing recorded flight data. After the flight is completed, the interface will show additional options to download the Flight Log and MAT File containing recorded flight data.
- +\\ 
 +\\
 ==== 5.2 Collecting Motion Capture Data for Drone Flight ==== ==== 5.2 Collecting Motion Capture Data for Drone Flight ====
  
Line 245: Line 244:
  
 Here’s the full step-by-step process: Here’s the full step-by-step process:
-1. Open a terminal and run:+\\ 1. Open a terminal and run:
   roscore   roscore
 2. Open another terminal and launch the VRPN client node: 2. Open another terminal and launch the VRPN client node:
Line 304: Line 303:
       except rospy.ROSInterruptException:       except rospy.ROSInterruptException:
           pass           pass
 +
 +==== 5.3 Validation through Mocap Experiment ====
 +
 +After deploying the controller and executing flight tests in the motion capture environment, we validated the reliability of the Simulink quadcopter simulator by comparing the simulation outputs with the actual flight data.
 +
 +The following video shows the experimental setup. The Parrot Mambo drone, loaded with the deployed controller, was flown in the motion capture space while the flight data was simultaneously collected using mocap tracking:
 +{{youtube>ya10C-6nGKU?large}}
 +
 +In this experiment, a step input was applied to the Z-axis command to observe the altitude control performance. Two different scenarios were tested:
 +
 +**Scenario 1: Default Drone Weight**
 +\\ A step input commanding a rise from approximately 0.6 meters to 1.1 meters was given. The comparison between the simulation and real flight data is shown below:
 +{{ :simulator_part5_8.jpg?nolink&800 |}}
 +
 +The blue solid and dashed lines represent the simulator and real-world Z positions, respectively. The results demonstrate that the real drone altitude closely followed the simulation prediction, validating the accuracy of the simulated model under nominal conditions.
 +
 +**Scenario 2: Additional Payload**
 +\\ In this test, a 5g weight was attached to the drone to assess the robustness of the controller and the simulator under additional load conditions. The results are shown below:
 +
 +Despite the added weight, the actual drone flight trajectory remained highly consistent with the simulator's prediction, especially in the Z-axis control. This suggests that the Simulink-based model maintains its reliability even under moderate payload variations.
 +
 +Overall, the close match between the simulated and actual flight data confirms the effectiveness and credibility of the developed quadcopter simulator. This validation provides confidence that the simulation environment can be used to predict real-world quadcopter behavior accurately.
  
  
simulink_quadcopter_simulation.1745727487.txt.gz · Last modified: by yehyun