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!