File Exchange

image thumbnail

Simulink Support Package for Parrot Minidrones

Design, simulate and deploy algorithms to fly Parrot Minidrones

323 Downloads

Updated 11 Sep 2019

Editor's Note:

This support package is currently unable to download third-party software for MATLAB R2017a and earlier versions. For details and workaround, see this Bug Report.

MATLAB R2017b and later versions are unaffected.

Simulink® Support Package for Parrot® Minidrones lets you build and deploy flight control algorithms on Parrot minidrones. You can deploy algorithms wirelessly over Bluetooth®. The algorithms can access onboard sensors—such as the ultrasonic, accelerometer, gyroscope, and air pressure sensors—as well as the downward facing camera.
Simulink add-on tools provide additional capabilities. Aerospace Blockset™ includes an example that makes use of Parrot minidrones. The example lets you model 6-DOF equations of motion and simulate aircraft behavior under various flight and environmental conditions. Simulink Coder™ lets you record flight data on the minidrone and access the C code generated from Simulink models.

Supported minidrone models are Rolling Spider and Mambo.

Note for Windows 7/10 users on Bluetooth connectivity:

There is a limitation in the supported Bluetooth adapters that can be used. The user may need an extra Bluetooth adapter even if there is a built-in Bluetooth connection on the host computer. The best adapter available is the CSR 4.0, which supports the PAN GN connection required. For this Bluetooth dongle, the user needs to install the CSR-specific driver and not the Windows driver that would be picked by default.

For more information visit: https://www.mathworks.com/hardware-support/parrot-minidrones.html

Comments and Ratings (156)

Hi,
In the documentation for installing the Mambo minidrone on windows
(https://www.mathworks.com/help/releases/R2019a/supportpkg/parrot/ug/connect-parrot-mambo-minidrone-to-computer-using-bluetooth.html)
In the point 3. of the Prerequisite, the link for downloading the CSR driver is NOT working.

Does someboody know where to download it?

Thank you!! :)

Hello,

I'm trying to install the support package.
A popup windows comes out and The third-party software that I need are:

Carlson-Minot G++ Lite
HoRNDIS
HoRNDIS
Bluetooth Utility

But when I try to install it, an error says that i miss these packages.
I run on macbook pro 2015 with the last MacOS version.

How can I solve?
Thank you

Hello
I have some questions regarding this package
1- What is the sampling frequency of İmage conversion block?
2-Why image conversion block outputs 160x120 instead of full resolution of camera?
3-Can we test the run time of our program before deploying?
Thank you

Ankur Bose

Hello Maxwell Barnett,
There has been a recent outage with some of the compiler links. The issue has been resolved now. Can you please try downloading again?

I'm running a MacBook Pro with Matlab 2019b and have been having the same issue that Luca was having before. I attached his message below:

Hello All,
I have this problem when I try to download the Simulink Support Package,
"Failed to download the third-party software: Carlson-Minot G++ Lite" , how can I resolve this issue? I haven't been able to find this package. I'm using a MacBook Pro with Matlab 2018a.
Thanks in advance

Is there another possible reason this error would occur? Or is the link to the compiler still not working?

Thanks,

Max

Thanks Jayanth, I found out I didn't open the flightControlSystem as root Model after some time. Now I can work with the mini dron properly.

Seems that the message before my "Ps" wasn't sent . To summarize: I do set up screens configuration as I said, I connect the drone to pc with SUCCESS , set the model for mambo, in panel configuration i set the hardware target, I open the flight control system as top model and generate the code . The building process end successfully as i can read from diagnostic. But nothing happens next , it should "build deploy and run " as written in configuration parameters build action. All the settings are applied. So I start the interface for parrot manually from windows command and when I try to take off the error " can't detect server code on mambo " appears. the code is just generated and not deployed? How can I solve?

more info:

Model drone : mambo
Matlab version : R2019a

PS: the hardware used to work well with the simulink support, indeed the template for spinning the rotors alternately was well deployed and run on hardware. After couple months, i have performed a factory reset and reinstalled the original firmware using the parrot app(now: 3.0.25). So to work again with the simulink support I have performed the simulink set up configuration screens that rewrite the firmware of the drone again. The process seemed not to end well: the led turn orange as should be but after blinking faster they turn red (in my belief is a fail occurred ) but then autonomously start again to blink orange and then green as they should. Following the screens mentioned above I have checked if the firmware was written well and the screens that let you verify if the firmware writing ended with succes say that it's all ok . So I proceed to connect the drone over bluetooth and establish Nap configuration with no problem . Then as I mentioned in the last message the error occured cause seem that the code is not deployed but just generated. I hope to solve this issue simply . Thanks again for your support .

Hi Evelyn,

You're still building the entire model. Open the referenced subsystem as the top model. Right click on the flightControlSystem and "Open as root model". And build the newly opened model. You could close the Simulation model if required.

Thanks Jayanth, as you mentioned the problem was caused due to I was building the entire simulation, but now when I build the model in R2019a I'm having a compilation trouble as others who asked before : "Error: VR Source and VR To Video blocks cannot be used with code generation. I'm not sure how to solve it because the VR Window suddenly opens while the compilation. Thanks by the way for your answers, they had been really helpful.

Hi Evelyn,
I'm guessing you're trying to build the entire simulation model. Don't do this, Open the flightControlSystem model as a root model (Right click on the flightControlSystem and "Open as root model"). Then set the hardware using the project shortcuts found in MATLAB window (This is to make sure the target is set properly). Then deploy only this model.

Thanks Jayanth, I got the problem solved now. But now I have a compilation problem. When I Generate the flight code it appears a message that says
Error using coder.make.Builder/coder_diagnose
Error(s) encountered while building "flightControlSystem":
### Failed to generate all binary outputs.
So I don't know how to solve it. Also If I Build Model ( Ctrl + B) , an error appers
Error building model 'nonlinearAirframe'. The current model configuration differs from the model configuration used to generate the shared utility code folder, 'C:\Users\pajel\MATLAB\Projects\slexamples\asbQuadcopter28\work\slprj\grt\_sharedutils'.

I Would thank you so much. I been trying to solve this for a long time.

Hi Evelyn,

The link to the bluetooth driver is broken, please install the drivers from the CD you received. Please check the answer below for more details.

Hi all,

The link to the bluetooth drivers, in the hardware setup screens is no longer active. While buying the dongle, search for a CSR 4.0 dongle and ensure a CD is provided with it. Once you receive the dongle, first install the drivers from the CD and then continue.

Hi, I'm having a trouble to download the Bluetooth driver for the CSR adapter, it seems that the link is broken. Does anybody know where I can get the driver? or if is really necesary to the connection ? For the connection, they mention I need to install the Bluetooth driver for the Bluetooth adapter, but the link doesn't work. I would thank you so much

hello, the package parrot needs to Simulink real time?

Han Ren

Why doesn't download?

jaeyun

When I build model, I get the error "Error: VR Source and VR To Video blocks cannot be used with code generation."
How do I fix this?

Hi Adriel,

Change your current working directory to another path. You won't be able to generate code in "C:\Program Files\MATLAB\R2018a\bin" since writing to this folder is not allowed. Change the working directory to some other folder, say on your desktop, it will work.

Hello everyone,
Can someone help me solve this error?

"Your current working folder is:
C:\Program Files\MATLAB\R2018a\bin
Simulink does not permit you to modify the MATLAB installation area.
Please change to a working folder that is not in the MATLAB
installation area and re-try the previous command."

Hi Jayanth,
Thanks for your Reply. That is a very bad for me as a retired el. engineer. I can't afford a professional Matlab/Simulink Edition.The Parrot Mambo seems a very fine education tool for automatic control theory. Is there no possibility to have a higher number of non-virtual blocks for the home Edition?

Hi Hans,

The maximum number of blocks that a model can contain depends on the kind of license you have. The home edition has a limit of a 1000 non-virtual blocks.

I have an additional question for my last question about the compatibility of the Matlab/Simulink home Edition with the Parrot HW Support package. How is the correct command for getting the number of non virtual blocks?

I don't yet have the Mambo minidrone and installed the Parrot support package on a Windows 10 PC running Matlab/Simulink (R 2019) home edition. When I want to start a simulation (without the drone) with the Mathwork tutorials it stops with the error of exeeding the number of non-virtual blocks of 1000 in the home Edition. Is this a consequence of not yet having connected and configured a Mambo drone? Or does the Matlab/Simulink home edition not allow running programs with the Parrot support package as the number of non-virtual blocks is limited to 1000?

Hi Kedar,
What is the version of MATLAB that you running? The parrotMinidroneCompetitionStart exists only in R2019a and later. Also, did you try using the Hover Parrot Minidrone template, from the list of Simulink templates?

Kedar Karpe

Package is insatlled but >>parrotMinidroneCompetitionStart returns, No system or file called 'parrotMinidroneCompetitionStart' found.

Hi Haokun,

You can install the support package without the hardware. Just go to your MATLAB session and click on Add-ons and then search for the Simulink Support Package for Parrot Minidrones and you'll be able to download and install it.

haokun zhu

Hello,I don't have a hardware of the Parrot Minidrones,How can I install this package?thanks

Ankur Bose

Hello,
The support package download failure in MAC OS has been fixed for R2017a, R2017b , R2018a and R2018b. The issue was not present in R2019a. MAC users working in R2017a, R2017b, R2018a and R2018b who had tried earlier to download the support package but failed, can try again and get the support package downloaded.

Hello everyone, can anyone tell me the reason why in the non-linear model, in the Rotor-Dynamics block, the rotation matrix J is transposed, which does not happen in the recommended scientific article? Thanks in advance!

hello Ankur Bose,
It turned out that I didn't have performed the hardware setup screens that you mantioned so now that i have done it I managed to resolve my connection problem (THANKS) . Indeed now I am exactly in this link situation (https://it.mathworks.com/matlabcentral/answers/407216-how-to-solve-ftp-error-when-building-the-model) . i've seen your answer to that topic and im go to apply it . i hope i dont run into any other issues... Really thank you for your assistance!!

Ankur Bose

Hello Samuele Sabatucci,
Did you follow the steps mentioned under Hardware Setup in this link https://www.mathworks.com/help/releases/R2018a/supportpkg/parrot/ug/install-support-for-parrot-minidrone.html? This is also present in Setup and Configuration. By following the steps under hardware setup, you can launch the hardware setup screens and follow the instructions mentioned in the screens

hello Ankur Bose ,
The drone's firmware is updated to last version available ( 3.0.26) , but sorry if i cant get what you exactly mean with hardware setup screens, where should i had performed it .As i wrote before Im following the 'setup and configuration' topic offered by matlab for this package in a very accurate way (https://it.mathworks.com/help/releases/R2018a/supportpkg/parrot/ug/connect-parrot-mambo-minidrone-to-computer-using-bluetooth.html) but the issue is that whatever i perform to resolve the problem , i cant continue the instruction on the link above (point "Add a parrot mambo minidrone to a windows system" comma 3 ) . The controller icon to properly pair the drone never appear .
thanks again

Ankur Bose

Hello Samuele Sabatucci,
For Parrot Mambo, installation of RNDIS is optional. Also, you would not see RNDIS option in device manager unless you perform hardware setup screens and update the firmware? Can you confirm if you have performed hardware setup screens and updated the firmware of Mambo?

Hi everyone here,
drone : mambo
OS : windows10
correct csr 4.0 doogle
Im following the guides in the package : 'set up and configuration'

PROBLEM_1 : my pc see the drone as a MASS STORAGE UNIT and i can t see it in "other device" on the Device Manager so that i can't install the RNDIS driver .

PROBLEM_2: assume that i menaged to fix the PROBLEM_1 : I pressed the power button on the drone for 10 second and it went on some particular mode ( fast red blinking light )that made the RNDIS driver voice appear and i managed to install it . Now this method doesn't work anymore and im in the same situation of PROBLEM1

PROBLEM_3 : assume that PROBLEM_2 is not a real problem and the driver is well installed even if i can't check it , when i try to add the mambo with csr4.0 radio bluetooth i cant see the controller icon that i should press (in my opinion is all related to PROBLEM_1 and the RNDIS is not well

HOW SHOULD I MANAGED THIS SITUATION TO FIX ALL?

REALLY Thanks !!!

Hi Radu,

Please contact the tech support to resolve the issue.
https://www.mathworks.com/support/contact_us.html

Radu Ghiga

Hello All, I have Matlab 2017b installed on a Windows 7 machine and when I try to install this Support Package I get an error saying that I have the incorrect Matlab or Operating System Version. Is this a bug, or the current version of the support package is no longer supported on the configuration I have?

Thanks!

Hello everyone,
Someone is informing me about the battery data once the word is referring to "SOC" or "milliampere * hour", can you be related to the two?

ello jayanth yelandur
Many thanks for the tip it worked perfectly. a new question is whether the conversion by block 'Data Type Conversion' will affect the tuning of the PID controller?

In the webinar after PID tuning, the 'K' and 'P' values ​​of the controller were replaced in the original simulation and an improvement was observed. however when I replaced the 'K' and 'P' parameters after the tuning I noticed that it spoiled the response of my position signal.
Someone can help me with a tip or if I got the modifications perfectly and can share a link with the file after modification, to compare look for my error, I'm running the video step by step but with different results.

Hi Adriel,

Since a lot of stuff is being removed, there is a chance of data type mismatches. To solve this, just a 'Data Type Conversion' block on the line in which the error is caused. This should resolve the issue.

Has anyone tried adjusting the altitude controller according to webnars made available by mathworks? I took one step of this video:

https://www.mathworks.com/videos/drone-simulation-and-control-part-5-tuning-the-pid-controller-1540450868204.html

but I have this error:

Incompatibility of data types. Input port 4 of 'asbQuadcopter / ControlMixer' expects a signal of the 'double' data type. However, it is driven by a 'single' data type signal.
Component: Simulink | Category: template error
Incompatibility of data types. Output port 1 of 'asbQuadcopter / feedforward by gravity // equilibrium thrust' is a signal of the 'single' data type. However, it is triggering a "double" data type signal.

can anybody help me?

Hi John Doe,

Use this link to contact the tech support:
https://www.mathworks.com/support/contact_us.html

John Doe

Thanks for your answer! Yes, the model is configured for its use with the Rolling Spider. Can you provide me with a way to contact Technical Support?

I updated to 2019a and i am getting issues. I get the error "Error: VR Source and VR To Video blocks cannot be used with code generation." I never got this before. It also keeps saying to switch different models from ert to grt or visa versa. How can i correct these issues?

Hi John Doe,

What is the error message you are getting? Did you select the right hardware? It would be good if you could contact the Technical Support with the answers to these questions...

John Doe

Hello, I've been having issues generating the code for the "asbQuadcopterStart" example. I'm using the Parrot Rolling Spider. I get an error about a failure to generate the binary outputs. This doesn't happen with the "parrot_gettingstarted" example, the one that turns on two rotors at a time.

Hi Jasvir Virdi,

Could you let us know the issue you are facing? Do give details about the OS, MATLAB version etc.

Thanks, Jayanth Yelandur Keshava!

Hi Luca Mezzanotti,

We are aware of the issue. This is due to a broken link to the Carlson-Minot g++ compiler. We'll notify you once the issue is fixed.

Hello All,
I have this problem when I try to download the Simulink Support Package,
"Failed to download the third-party software: Carlson-Minot G++ Lite" , how can I resolve this issue? I haven't been able to find this package. I'm using a MacBook Pro with Matlab 2018a.
Thanks in advance

My email id is jvirdi2@illinois.edu. I am using parrot mambo drone as well

Hi Jayanth-
We are using the Parrot Mambo. My email is quint@stanford.edu. Thanks for your response.

Hi,
Is it possible to use this toolbox with AR Drone 2.0? I'm using Matlab r2017b.

Hi Quint,

What drone are you using? Please share your e-mail id. We'll resolve the issue....

Hi-
I have installed the Simulink Support Package for Parrot Minidrones, but Matlab freezes on either the first or second screen of the Hardware Setup window. I've retried this at least 20 times and it always gives me the spinning beach ball. I have updated mac OS to the latest version (10.14.4). I have tried in both 2018b and 2019a. I have tried restarting my computer. This issue is very frustrating as it prevents me from even beginning this project. Any support would be appreciated.

Hi Ankur Bose,
thank you so much for the helpful help everything went well!

Ankur Bose

Hello All,
The R2019a version of MATLAB is live now. The R2019a version of the Simulink® Support Package for Parrot Minidrones provides a way to navigate your flying Parrot Mambo drone using the Keyboard control block in Simulink. The R2019a version of the support package contains a Simulink template to help you get your Parrot Mambo drone take off and fly.

Ankur Bose

Hello ADRIEL DE OLIVEIRA FREITAS ,
If you have downloaded the flight log, you can see that the log contains the battery voltage information for each second of the flight information. If you downloaded the MAT File , you need to load the MAT File in MATLAB workspace using the command load('RSdata.mat') which would then load all the sensor information during flight on your workspace.

Hello everyone,
How do I view the vector with the battery charge and voltage data after clicking "Flight Log" and "Mat File"?

Hi Rummu Yang,

Which version of MATLAB are you running? I was assuming you had R2018b installed. In case you are running R2018a or earlier, you need to follow a few steps. I'll mail the steps to you.

Hi Ankur
Yes, my email is: adrieloliveira_@hotmail.com

Ankur Bose

Hello ADRIEL DE OLIVEIRA FREITAS ,
Can you share me your email-id so that I can follow up regarding the issue you are facing?

Ankur

Hello everyone,
I have Simulink® Coder ™ installed on the computer, and MAT file registration is enabled in the Configuration Parameters dialog box in the Simulink model. When I press "Flight Log" and "MAT File", the MAT file is not generated. Someone could help me because I need the flight record data and their respective graphics.

I'm using the example "asbQuadcopterStart" and the drone "rolling Spider"

k k d

Hi Ankur,
In the control block, I would like to design a fractional order PID controller to the rolling spider Simulink model but I am getting an error. I would like to know, whether the Parrot rolling spider Simulink model will support the fractional order PID controller or not. I have successfully implemented the FOPID controller on the simulational model proposed by Prof. Peter Corke (Ref: Robotics, Vision and Control). I found that using the same model, rolling spider Simulink model was developed but I am unable to implement the FOPID controller on the Parrot model Simulink.
My Email id: kranthikd.rs.eee@itbhu.ac.in

Regards,
Kranthi

Runmu Yang

Hi Jayanth Yelandur Keshava,
I can't find where 'landing logic' inside the FCS block is, or am I missing sometihing?
In addition, I followed this webinar (https://www.mathworks.com/videos/programming-drones-with-simulink-1513024653640.html), I have brought in the reference signals to depoly them to the drone, but when adding the signal input into the FCS, how kann I get it to be discrete? I put it to fix by accepting continious time but it isn't working properly.
my email ist runmu.yang@fau.de, looking forward to hear from you!
Best regards,
Runmu

Hi Runmu Yang,

The reference signal modification only works for the simulation. The entire asbquadcopter model is not deployed to the hardware. Only the Flight Control System part is deployed to the hardware, hence it doesn't reflect onto the hardware. If you want to change the pattern for hardware deployment, navigate to asbQuadcopter -> FCS -> Flight Control System -> landing logic. You can modify the x,y,z signals here and the same would be reflected in the simulation as well as the deployment.

Regards,
Jayanth

Ankur Bose

Hi ADRIEL DE OLIVEIRA FREITAS ,
Open Simulink configuration parameters and set the target hardware of parrot_gettingstarted Simulink model as Parrot Rolling Spider instead of Parrot Mambo. Then try building.

Ankur

Hello All
The Bluetooth 4.1 that came embedded in my notbook can replace the external usb dongle?

he following error appears: " ### Build procedure for model: 'parrot_gettingstarted' aborted due to an error.
The following error occurred during deployment to your hardware board:
The PARROT Mambo minidrone is not connected over Bluetooth to host computer. Connect the minidrone and build the model again." After connecting the Parrot Rolling Spider via Bluetooth to the PC, I checked the following 192.168.3.5 connection address at the command prompt. I pinged and it resulted in: "PARROT Rolling Spider fagot is connected" so far ok. Does anyone know what this problem is?

Hello everyone,
After connecting the Parrot Rolling Spider via Bluetooth to the PC, I checked the following 192.168.3.5 connection address at the command prompt. I pinged and it resulted in: "PARROT Rolling Spider fagot is connected" so far ok. However in the last step in the model: "parrot_gettingstarted" when pressing "Deploy to Hardware" the following error appears: "The following error occurred during deployment to your hardware board:
The PARROT Mambo minidrone is not connected over Bluetooth to host computer. Can someone help me to resover?

Runmu Yang

Hi everyone,

I have a question about modifying the reference signal.
I modified the signal builder in the reference signal, then I deployed the flight controller to the hardware. But it did not work as well.
If anyone know how to solve this problem, please give me your help.

Thanks in advance
Runmu

Ankur Bose

Hello Benjamin Rothaupt,
The Parrot firmware disables many features when you connect the drone over USB instead of Bluetooth. Can you let us know your use case why do want to flash over USB instead of Bluetooth? Even if you flash over USB you still need Bluetooth to fly and control the drone.

Thanks,
Ankur

Hi everyone,

is there a way to connect the Parrot Mambo to my PC via USB instead of Bluetooth?
The setup process requires a BT device, which my computer does not have. At least for flashing custom controllers, USB should be implemented as an option. Or am I missing something?

Thanks in advance,
Benjamin

Ankur Bose

Hi HWANJIN JUNG,
After you have connected the Parrot Mambo over Bluetooth to PC, you can verify the connection by pinging the address 192.168.3.1 on the command prompt. Can you ping the address and let us know the output?

Ankur

Hello everyone
I have a trouble to proceed hardware setup. I followed all the steps of hardware setup.
but at the last step that is 'Confirm PARROT Minidrone Configuration', there is an error 'PARROT Mambo is not connected to Bluetooth' when I clicked 'Test Connection' button.
I have followed that process again and again. but I cannot solve this problem.
If anyone know how to solve this Bluetooth connection problem, please give me your help.
Thanks in advance

MATLAB ver.: R2018a
Platform: window10
Minidrone: Parrot mambo
Buletooth USB adapter: NEXT-204BT
Bluetooth driver ver.: 2.1.61.0

Hi everyone
Does anyone know if there is a way to use the grabber or the cannon of the Mambo minidrone using the Simulink support package?
Thanks in advance,
Javier

Hi Ankur,

Yes, it is jetraverb@unex.es

Ankur Bose

Hello José Emilio Traver,
Can you please share your email id through which I can contact you to resolve the issue you are facing?

Hi everyone,
I am trying install the toolbox, but I don't achieve it. In the setup process in "Verify Firmware", the following error appears:

Unable to create Ethernet network over USB.Check these and restart the setup process:
- Connections to minidrone
- HoRNDIS driver installation
if the problem persist, restar your computer and try again.

I also installed the HoRNDI package but the error persists. If I skip this step and try search the bluetooth of the Minidrone, I never find it. However, if I use a third party bluetooth scanner, I can see the bluetooth perfectly.

By the other hand, I try install the package in Windows 10 with VMware fusion but I couldn't install the RNDIS driver.

What can I do?

Thanks in advance.
---------
Info about my pc:
MATLAB version : R2018b
- Platform: Osx 10.14 (MBP 2018)
- Support Package version. : Last version.
- Minidrone: Parrot Mambo.

- MATLAB version : R2018a
- Platform: win/mac/Linux : Win10
- Support Package version. : ?? How can I check this..
- At which exact screen in the hardware setup are you facing this issue. : I clicked the setup button at Add-on manager. After the hardware setup window popped up, I clicked next button. Then, I got "too many input arguments" error massage...

Tomo

I currently have doubts about the correctness of the tutorial on "TCP / IP and UDP using Communicating with a PARROT Minidrones." Details are in MATLAB Answer below, any answer will be of help to me.
https://jp.mathworks.com/matlabcentral/answers/436095-three-questions-about-the-tutorial-on-communicating-with-a-parrot-minidrones-using-tcp-ip-and-ud

Hi Samuel,
Could you please give us more info on the error? Please let us know:
- MATLAB version
- Platform: win/mac/Linux
- Support Package version.
- At which exact screen in the hardware setup are you facing this issue.

When I try to do hardware setup, I get "too many input arguments" error massage.
How can I solve this problem.

Ankur Bose

Hi All,
If you are installing the support Package in Ubuntu 18.04 or later, the code compilation after Simulink model build might fail. To resolve the issue, please execute the below commands in Ubuntu Terminal.

sudo apt-get install gcc-arm*
sudo apt-get install lib32z1 lib32ncurses5
sudo apt-get install build-essential

We are three students of the University of Florence, Italy. We'd like to share with you our project with a Parrot Mambo Minidrone.
https://www.youtube.com/watch?v=Cb8I8mH1ZYs&t

Qi Lu

Hello, Ankur,

My name is Qi Lu. I am a Ph.D. student from Texas Tech University. From the data I have recorded, it seems that the posVIS_data signal is always zero and the usePosVIS_flag is also zero. Is there any way to enable this flag and get the posVIS_data signal? My email is qi.lu@ttu.edu. Thank you for your kind help!

Best regards,
Qi Lu

Onur Ersoy

onur.ersoy@ozu.edu.tr

Thanks for support Ankur

Ankur Bose

Hello Onur Ersoy,
Please share your email-id so that we can help you with the issue you are facing

Onur Ersoy

Hello,
I am having trouble during the insallation of the support package. The error that is given during the installation is:

Java exception occurred:
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:476) at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:374) at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1379)

I am using Matlab 2017b with Win10 for Rolling Spider. I have tried the solution that is given for a similar FTP problem below.

Ankur Bose

Hi Everyone,
The R2018b version of MATLAB is live now. The R2018b version of the Simulink® Support Package for PARROT® Minidrones provides a way to connect the Mambo and Rolling Spider minidrones to Linux platforms such as Ubuntu 16.04, Debian 9 etc. You can design your image processing algorithm in Simulink, simulate your model and build and download the code on the drone to test it out.

Ankur Bose

Hello Brandon,
I have reached out to you on the email-id you mentioned. Let me know if you have not received it

Ankur

I am trying to download this support package for Mac MATLABa and am getting an error when downloading the Bluetooth Utility:

Failed to install the third-party software:
Bluetooth Utility
This is required by:
Simulink Support Package for PARROT Minidrones
To resolve this issue, see this MATLAB Answer.
I did not fine any solution when following the suggested link nor here on the comments.
i am using mac osx and here is my email blkain@uh.edu

I tried the support package posted by Ankur Bose and it did not help. I manually installed the package itself alone and it worked, but when I got to download the entire package together it still gives me the error.

@Jeremie Pilon: Please create a technical support case to investigate your question: https://www.mathworks.com/support/contact_us.html

I am wondering if the saturations for the motors are present for safety reasons or if they are the real motor limits? My emails are pilon.jeremie@gmail.com and jeremie.pilon@polymtl.ca . If someone can contact me concerning this issue, it would be great!

There seems to be an issue with connectivity over bluetooth. After about 20 seconds, the minidrone drops the connection with the host computer and it takes 3 to 4 seconds before the connection is re-established. My emails are pilon.jeremie@gmail.com and jeremie.pilon@polymtl.ca . If someone can contact me concerning this issue, it would be great!

Hi Ankur,

my email address is ryanwj7@gmail.com
looking forward to hear from you
thanks

Ankur Bose

Hi woong-ji choi ,
Can you please share your email id through which I can contact you to resolve the issue you are facing?

Hi i'm using Mac OS and i've installed the update 6 as mentioned in the comment.
But I'm still not able to install the support package.
Can anyone help me resolving the issue?

Ankur Bose

HI Maxime,
Can you post your email id so that I contact you to resolve the issue you are facing

I had the same error!!!

Hello Ankur
I have a MATLAB R2017b and I am trying to install the simulink support package for parrot minidrone however i keep recieving this error:
Failed to install the third-party software:
Bluetooth Utility
This is required by:
Simulink Support Package for PARROT Minidrones
To resolve this issue, see this MATLAB Answer.
I did not fine any solution when following the suggested link
i am using mac osx and here is my email basharj2234@me.com

Ankur Bose

Hi All,
Installation of the support package might fail for MAC OS and Linux platforms in R2018a . Please see this Bug Report for detail:
https://in.mathworks.com/support/bugreports/1743528

Workaround for the issue:
Execute a userpath('reset') command in MATLAB and then try installing again

Hello Ankur here is my email

wilfrid.perruquetti@centralelille.fr
Thanks best regards

Ankur Bose

Hello Wilfrid Perruquetti ,
I will assist you in resolving the issue that you are facing. Can you please share with me with an email id through which I can reach you and help you out ?

Thanks,
Ankur

Hello Ankur,

I updated Matlab to the latest version 2018a and try to install "Simulink Support Package for PARROT Minidrones"
but I got the following error (I did it at least 15 times):
Install Error
Failed to install the third-party software:
Bluetooth Utility
This is required by:
Simulink Support Package for PARROT Minidrones

To resolve this issue, see this MATLAB Answer.
I did not fine any solution when following the suggested link.

I am professor at Ecole Centrale in France and I need this package for my control & robotics course for my students. Thank you for your help. Best regards

Tomo

Hello Ankur.
According to your instructions
When I updated MATLAB R2017b, I was able to fly manbo as model. Thank you very much.

Ankur Bose

Hi Tomo,
In MATLAB R2017b, in order to use the 'asbQuadcopter' model that supports Parrot Mambo minidrone, you need to update the MATLAB. Please visit this the below link to download the R2017b update and install it.
https://in.mathworks.com/downloads/web_downloads/download_update?release=R2017b&s_tid=ebrg1709643

After you have successfully installed this update, you can see the 'set Mambo Model' option in the project.

Regarding drone forcibly quitting when placed on the floor, ensure that the room where you are flying has sufficient illumination. If the surface is too reflective, it can also cause optical flow issue thus stopping the motors. Try putting the drone over a surface that is not too much reflective for ex- a carpet or a mat.

Tomo

Sorry for the late reply. MATLAB version '9.3.0.713579 (R2017b)'. Support package version is '17 .2.3'. I am using windows 10.

Hi Everyone,
The R2018a version of MATLAB is live now. You can now use TCP/IP Receive, TCP/IP Send, UDP Receive, and UDP Send Blocks in the Simulink® Support Package for PARROT® Minidrones to communicate between your minidrone (rolling spider or mambo) and host machine.

Hi Tomo,

Which version of MATLAB/Support Package are you using?

Tomo

Hello. I started studying Matlab on occasion that Parrot was supported. I am using Manbo, but I am facing a problem. The tutorial 'Parrot Getting Started', 'External Model' and 'asbQuadcopterStart Model' do not work properly. If you let Manbo run it with the ground on the floor, it forcibly ends within 1 second. It seems that the camera at the bottom of Manbo reacts to the floor and is forced to quit.
Please tell me the solution.
Also, after executing 'asbQuadcopterStart' with matlab, 'set manbo model' is not displayed in project shortcut. Is this normal?

Ankur Bose

Hi Jakub Popielarz,
The current MATLAB directory where you are trying to download the flight log, does it have sufficient space on it ?
Also since you are trying the support package version 17.2.3 in R2017b, try to download the flight log using the Flight Control UI after code deployment.
More information on how to deploy code and then use the Flight Control UI can be found in the documentation.

https://in.mathworks.com/help/supportpkg/parrot/ug/use-flightcontrol-ui-on-parrot-minidrone.html

https://in.mathworks.com/help/supportpkg/parrot/run-on-target-hardware-main.html

Ankur

Dear Ankur,
I using 17.2.3 support package, R2017b MATLAB version and WINDOWS 10. I can deploy code from Simulink on the drone, but can not read logs. I have also tried to disable firewall and clear memory cache on drone.

Thank you very much Ankur Bose,
your link helped me solving the issue. Contrary to your mentioned IP adresses, I had to use 192.168.3.1.

Christian

Ankur Bose

Hi Christian Tolks,
The issue most likely you are facing is that the Firewall of your system is blocking the FTP transfer over IP 192.168.3.2. To verify if this is really the case and if yes, then in order to resolve the issue, please look into the below MATLAB answer.

https://in.mathworks.com/matlabcentral/answers/381182-how-do-i-resolve-this-error-regarding-java-and-ftp-connection-when-trying-to-deploy-models-to-my-par

The ftp and mput command as explained in the answer if fails, will confirm that FTP transfer is being blocked by Windows Firewall. In that case add the IP 192.168.2.2 to firewall exception as mentioned in the above answer.

Ankur

Hello,
after successfully installation of support package, bluetooth PAN connection and compilation of the example parrot_gettingstarted.slx, I get following error:
Downloading shared object to PARROT Mambo....
Terminating the currently executing shared object (if any) ....
Connecting to FTP Server 192.168.3.1 ....
Connected to FTP Server at 192.168.3.1 successfully.
### Build procedure for model: 'parrot_gettingstarted' aborted due to an error.

The following error occurred during deployment to your hardware board:
Java exception occurred:
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:476) at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:374) at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1379)

This seems similar to Jakub's problem. I tried all solutions mentioned in the comments below, but without success. A FTP connection to the drone via external ftp client works and it is possible to write data on it. I can also see a file named parrot_gettingstarted.so with size 0kb in the root of the ftp folder structure.

I'm using Matlab 2017b, support package v17.2.3 with a Parrot Mambo under Win7.

Many thanks for inputs.

Ankur Bose

Hi Liling Ren,
On which platform (Windows, MAC OS or Linux) are you trying to install the support package ? You can also share your email-id so that I can contact you to resolve the issue you are facing.

Ankur

L. Ren

Hello,

The installation of the support package always fails because the third party Sourcery G++ Lite is no longer available. What is the workaround for this issue? For what architecture the C++ compiler should be?

Many thanks.

Ankur Bose

Hi Jakub Popielarz,
Can you let us know the version of the support package and the corresponding MATLAB version (R2017a or R2017b) you are using? The FTP error that you are seeing can be caused by multiple reasons such as firewall, memory issues on drone etc.
Can you check if you are able to deploy the code from Simulink on the drone or not?

I would like to ask if anyone have problems with reading flight logs/mat file. I have following error when pop flight log:
Error using codertarget.parrot.internal.parrotminidrone/getFlightLog (line 124)
Java exception occurred:
org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
at org.apache.commons.net.io.Util.copyStream(Util.java:129)
at org.apache.commons.net.ftp.FTPClient.retrieveFile(FTPClient.java:1286)

Everything worked fine for me after reinstalling my BLE driver from my Bluetooth Dongle's CD. I have installed the driver from the zip file given by Mathworks in the setup steps. Hence, I'm able to deploy the generated code from Simulink to the mini-drone.
Otherwise, I observe something wrong with the mini-drone when the battery is under 50% of it's capacity, the mini-drone turns off and I have to put out and then put in the battery to be able to turn it on again, but after a moment, it turns off again and so on. Not sure what is causing this issue, if I get more information about, I'll leave a comment here. The solution is to fully charge the Battery to avoid this problem.

Dear Ankur,
Okay so here will be update on my progress with Package so far.
Throughout testing I am still using Windows 7 and package version 17.2.3.0
Firstly I have tried https://ch.mathworks.com/matlabcentral/answers/377285-hardware-failure-firmware-update-of-parrot-rolling-spider solution.
I know that technically if I am using newest version of the package it should be ok, but I wanted to give it a shot anyways. No success here.
Afterwards I tried https://ch.mathworks.com/matlabcentral/answers/361011-parrot-minidrone-firmware-update-java-error solution.
Matlab ftp command threw no errors, so I went with reason 2 of that solution.
I have followed it through, but when I try mput(f,'SpiderFlight.sh') command I still get an error. Error I get : https://ibb.co/jANbZR .
As suggested I have tried resetting drone to factory settings by holding power button and I have also tried manual removing data from /tmp folder with no success either.
The error I am getting when installing firmware is the same as last time.
So since I cannot get it to work using Windows I have tried Linux. And it worked well, the whole process.
But unfortunately I can't use Matlab with Linux for a prolonged time, because it is very unstable there - it crashes all the time ( but that is a bit unrelated problem).
So with firmware installed I have tested it on Windows again. This time I can't go through Bluetooth capability. I have adapter with Bluetooth Low Energy 4.0 capability. I have installed the drivers from the location given, however I still get message that Bluetooth support could not be detected.
At the same time I managed to connect to the drones Personal Arena Networking as outlined in the Documentation. But as far as I am aware I still need to complete Hardware setup, which I can't due to the fact that Bluetooth support could not be detected.
Sorry for such long post. Thank you in advance for any help. As I said it works perfectly on Linux so if there is nothing that can be done to fix it, I might try doing that and fixing stability issue of Matlab in Linux instead.
When it comes to contact my matlab ID is jakub530 or my email is jj420@cam.ac.uk.

The issue still happened once in a while. However, bu performing a hard reset (hold power button down for 20-30 seconds) I was finally able to install the firmware correctly on my remaining drones. Thank you for the quick update!

Note to others: you will perhaps need to perform several hard resets before the installation works. But it worked for me with all my drones.

Jeremie Pilon

Ankur Bose

Hi Yanis Bouhraoua,
Can you please let us know the exact error that you are getting while connecting to Bluetooth? It would be good if you can share the snapshot. You can also share your email-id so that I can contact you to resolve the issue you are facing.

Ankur

Ankur Bose

Hi All,
For those users who have been unable to successfully update the firmware on their Parrot Rolling Spider, we reached out to Parrot Inc and they gave us a workaround.
The workaround has already been published in R2017b in the support package version 17.2.3.
Please upgrade your support package version to 17.2.3 in R2017b and perform the hardware setup for Parrot Rolling Spider once more.

Alternatively, you can also follow the steps mentioned in this MATLAB answer by Ankur Bose on 29 January 2018.

https://in.mathworks.com/matlabcentral/answers/377285-hardware-failure-firmware-update-of-parrot-rolling-spider

Thanks,
Ankur

Ankur Bose

Hi Jakub Jaroszewski,
Can you please share your email-id through which I can contact you so that I can help you out with the problem you are facing?
Also can you take a look at the below MATLAB answer to see if your issue is resolved?
https://in.mathworks.com/matlabcentral/answers/361011-parrot-minidrone-firmware-update-java-error

Thanks,
Ankur

Update: After reinstalling the package I managed to get to the later point of installation with "Hardware Setup Error" - Java exepction occured.
Screenshot with full error report https://ibb.co/haQX1w

I am having the same problems as Yanis Bouhraoua and Jeremie Pilon. I have managed to install firmware in the past on one of the drones I own, but now when I am trying to install firmware on different drone I get "Hardware Setup Error" every single time. Firmware on the old drone still works and whenever I run setup with old drone firmware is being recognized.

Can you tell me, when can we expect an update, since I am doing a project with specified deadline, which relies on firmware working.
I am using Windows 7, Matlab 2017b and newest version of support package 17.2.3.0. I have also tried it on Linux with no success either.

I'm encountering the exact same problem as Jeremie Pilon. I tried several time to connect my PARROT Rolling Spider by bluetooth and it fails each time whith a unexpected error. I did my attempts after installing the firmware from the new version of this support package (17.2.3.0).

Ankur Bose

Hi Jeremie,
We have contacted Parrot Inc. for the firmware update failure in case of Rolling Spider and they have provided us a workaround for the issue. We will have an update soon for the support package in R2017b with the resolution.
If you do not wish to wait for the update, please let me know the platform (Windows, MAC or Linux ?) on which you are working with the support package and the MATLAB version and I will help you with the steps to update the firmware of the drone successfully.

Thanks,
Ankur

Is it possible to have access to older version of the file? There is a problem with the installation of the firmware with the newest version on the parrot rolling spider. Please provide all previous version to help in the debugging. With a previous version, I was able to successfully install the firmware, but not connect via bluetooth. With the newest version, I can't install the firmware, but the bluetooth functions properly.

Hi Everyone,

The support for Parrot Mambo Minidrone is available with 17b version of support package. You can download and Please try and let us know your feedback.

Aditya

I want to use this in the future for the Mambo (which I know is coming soon). It would be great if the example model was included as part of the hardware support package as well so that an aerospace blockset license is not required. The purpose of this package is to encourage experimentation by hobbyists and so providing the example project as part of that would be great.

Hi All,
You can have a look at the Post by Guy Rouleau on the topic "Programming a PARROT Minidrone using Simulink".
Here is the link to the post : https://blogs.mathworks.com/simulink/2017/11/17/programming-a-parrot-minidrone-using-simulink/

Hi All,
Now, You can download the latest version of the support package (17.2.1) for the 17b release of MATLAB.
Here are the updates:
- External mode over BLE.
- Updated Getting started example.
- Flight Control UI to be used once after downloading the Simulink generated code to drone
(Useful to Start,Stop the drone and also you can see options to set Power gain, Simulation time and buttons to retrieve the flight log and MAT file). (MATLAB Command to launch Flight Interface : Parrot_FlightInterface)

We are working on adding support for Parrot Mambo minidrone to the support package which will be available in January.

Hi Luís Mesquita,

The Simulink Support Package for Parrot Minidrones is supported from MATLAB 2017a release on wards only. You can work with Rolling spider Minidrone only for 2017a version of support package. If you can upgrade the MATLAB, I recommend you to update to MATLAB R2017b release instead of 2017a. We are working on adding support for Parrot Mambo Minidrones in 2017b version of support package. Please stay tuned to this page if you are interested in the usage of Parrot Mambo. If you would like to work with rolling spider, the minimum version of MATLAB release is 2017a. Please let me know if you need any more information.

It doesn't work in my MATLAB 2016b. Any help? I am not able to install the Simulink Support Package for PARROT Minidrones.

17.2.0 version of support package (compatible with R2017b) is out with Getting started Example.
Here is the link for the example to get started with support package in 17b.
https://in.mathworks.com/help/supportpkg/parrot/examples/getting-started-with-simulink-support-package-for-parrot-minidrones.html

I have the exact same problem and I cannot set up the hardware.
Are there any updates on this issue?

OS, MATLAB: Windows 10 Education, MATLAB R2017a

Hi Ankur!

Thank you for response. The results of actions you suggested:
1. I connect drone to PC, one LED is RED, the other is GREEN
2. I see a drive "Parrot_RS (E:)" in "My computer"
3. I run commands:
o = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator
o.getMountPoints
and "ans" variable is "0×0 empty cell array"
4. I type the command "wmic" in command prompt, then the "logicaldisk" command (without any error occure)
5. I see a list of my drives and one of them is my Rolling Spider:
Access : 0
Caption : E:
Compressed : FALSE
CreationClassName : Win32_LogicalDisk
Description : Removable Disk
DeviceID : E:
DriveType : 2
FileSystem : FAT32
FreeSpace : 33444864
MaximumComponentLength : 255
Name : E:
Size : 34063360
SupportsDiskQuotas : FALSE
SupportsFileBasedCompression : FALSE
SystemCreationClassName : Win32_ComputerSystem
SystemName : LAPTOP-6M4RG4CC
VolumeDirty : FALSE
VolumeName : Parrot_RS
VolumeSerialNumber : 10
6. I execute
o = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator
o.getMountPoints
and "ans" variable is still "0×0 empty cell array"
7. I run "NET.isNETSupported" on MATLAB command window and the result is "logical 1"

What else can I do?

Ankur Bose

Hi Pavel,
When the Rolling Spider minidrone is connected to the PC over USB, there is a timeout period after which the drone automatically disconnects from PC. It disappears from the drive list also and you cannot see the drone mount point anymore. A simple way to know if your Rolling Spider is connected to PC is to check the LEDs. When the minidrone is connected to PC over USB, the LEDs blink for a moment and after that one LED stabilizes to GREEN and other to RED. When the timeout happens and the minidrone disconnects, the GREEN LED (or both the LEDs in some case) turns off. You cannot see the minidrone mount point in the Windows anymore . If that happens, reconnect the minidrone over USB, wait for the LEDs to stabilize to one GREEN and one RED and then search for drone in the setup application. The timeout period is typically observed to be around 60 seconds.
If you find that the minidrone is connected to PC but the setup application is still failing to detect the minidrone, please check the following things
1. Check if it is being shown in the Windows drive list and has a drive associated with it in "My Computer". Also run the below command in MATLAB and see if drone is listed in output.
o = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator
o.getMountPoints

If drive is present in my computer and not in the result of o.getMountPoints, then the problem is with API.

1) First check is .NET is installed properly. Execute "NET.isNETSupported" on MATLAB command window.
2) Second check if WMI is enabled for the Windows machine. Type the command "wmic" in command prompt . This should not through any error. Once you are in wmic , try "logicaldisk" command.
Let us know your observations

Thank you, Jagadeesh.
By the way, how was you able to leverage with Support Package setup on Windowns machine?
Setup application don't see my Rolling Spider at all.
I realize that problem in a disability of MATLAB to find my drone as a mount point. When I run this commands with the drone connected:
usbDevices = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator;
usbDevices.getMountPoints('vendorid','19cf')
the last one returns an empty cell array. BUT on Linux machine all is well. And even command "usbDevices.getAttachedDevices" in Windows show me my drone connected, "usbDevices.getMountPoints" returns empty result.
I even have tried to make mount point for drone myself in Windows (i.e. C:\MountPoints\RS) but with no success.
Have you been facing problems like that?

Hi Pavel,

We are working on supporting Mambo in the future release of this support package. We will let you know once we add support for the Mambo minidrone.
We used Cirolink® Bluetooth 4.0 USB Adapter (and CSR Harmony Wireless Software Stack v.2.1.63.0 drivers) to test it on Windows7 and Windows 10. We have seen that all the bluetooth adapters are not having the PAN GN functionality. We will let you know once we find any solution for the adapters which are not having PAN GN functionality.

Thanks Ankur! It's quite confusing that submission has a Minidrone Mambo on cover image.

BTW did you test it in Windows 10?
I try but in Win 10 I'm not able to make GN connection via bluetooth and Hardware setup tool can't detect my Rolling Spider (even with the appropriate RNDIS driver for USB connection).

Ankur Bose

Hi Pavel,
In 17.1.0 version , only PARROT Rolling Spider is supported.

This is for Minidrone Mamboo only or RollingSpider is suitable too?

MATLAB Release Compatibility
Created with R2017a
Compatible with R2017a to R2019b
Platform Compatibility
Windows macOS Linux