Sending commands to Parrot minidrone using MATLAB or Simulink
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I'm trying to use the Simulink Support Package for Parrot Minidrones, specifically the Hover Parrot Minidrone Simulink Templace, to fly a Parrot Mambo around. I can build the code and deploy it onto the drone, and I am able to get the drone to take off and hover, but I can't figure out how to send the drone any commands to the real drone through the "AC cmd" input. I understand how to do so in a simulation environemt, and understand the intended structure of the signal, I just can't figure out how to actually send that command to the drone. Would anyone be able to help? Thank you.
Best,
Jad
0 Commenti
Risposte (1)
Rasmita
il 13 Apr 2023
Hi Jad,
It is my understanding that, you are trying to fly a Parrot Mambo using ‘Simulink Support Package for Parrot Minidrones’ and you want to send command to drone through ‘AC cmd’ input.
To set the "AC cmd" input signal, you can use a Constant block in Simulink. In the Constant block, you can set the values of the elements of the "AC cmd" vector according to the command that you want to send to the drone. For example, to make the drone move forward with a velocity of 0.5 m/s, you can set the values of the first element of the "AC cmd" vector to 0.5, and the values of the other elements to 0.
After setting the "AC cmd" input signal, you can run the Simulink model and deploy it to the Parrot Mambo drone using the "Deploy to Hardware" button in the Simulink model. The Simulink Support Package for Parrot Minidrones provides a set of blocks that enable you to interface with the Parrot Mambo drone and send commands to it.
For more information, please refer to the below documentation links:
https://www.mathworks.com/help/supportpkg/parrot/ug/set-hardware-and-deploy-on-parrot-minidrone.html
Hope this helps!
Regards,
Rasmita
0 Commenti
Vedere anche
Categorie
Scopri di più su Parrot Minidrones in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!