Sending commands to Parrot minidrone using MATLAB or Simulink
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Rasmita
2023-4-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parrot Minidrones 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!