How do I fly the PARROT minidrone using Simulink model?

2 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2017 年 9 月 8 日
回答済み: MathWorks Support Team 2017 年 9 月 28 日
How do I fly the PARROT minidrone using Simulink model?

採用された回答

MathWorks Support Team
MathWorks Support Team 2017 年 9 月 8 日
You can use the demo example asbQuadcopter from the Bug Report (Only for MATLAB R2017a or newer) if you have the license for following toolboxes.
  • Aerospace Blockset
  • Aerospace Toolbox
  • Control System Toolbox
  • Signal Processing Toolbox
  • Simulink 3D
Please follow the following steps in order to fly the PARROT minidrone using Simulink model: 
  1. Download the asbQuadcopter from the above link and follow the instructions mentioned in that page.
  2. Type "asbQuadcopterStart" in the MATLAB Command Prompt which will open the demo project.
  3. Simulate the model and play around. Double click the ‘FCS’ subsystem, which opens the ‘flighControlSystem’ reference model.
  4. Build this model. If the build goes through successfully, the shared object will be loaded onto the drone.  
  5. After successful codegeneration, create a PARROT object using the below command*
>> rs = codertarget.parrot.internal.parrotminidrone
  1. Start the drone using the below command *
>> rs.startDroneFlight
  1. Please note that the drone takes off as soon as the above command is issued. It is suggested to set the power gain value to a lower value first, to avoid any unwanted accidents.*
>> rs.setPowerGain(10)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParrot Minidrones についてさらに検索

製品


リリース

リリースが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by