These instructions are not relevant if you are planning on using Simulink.
Download Quanser Interactive Labs from https://qlabs.quanserdocs.com/en/latest/Get%20Started.html .
Run the exe file you just downloaded to install Quanser Interactive Labs.
Start by downloading the resources and setting up your computer using the Quanser Academic Resources repository.
Make sure to follow the instructions in the Setting Up Your Computer Section in that repository. Please skip any instructions on downloading Quanser Interactive Labs.
Note
DO NOT FOLLOW ANY OF THE INSTRUCTIONS OF DOWNLOADING QUANSER INTERACTIVE LABS, FOLLOW THE INSTRUCTIONS IN THIS README INSTEAD
Later in this guide there will be instructions on downloading Quanser Interactive Labs.
You should now have a C:/Users/user/Documents/Quanser folder with all of our resources.
The first step is to download these resources into your computer. We recommend downloading the files simply as a .zip file.
-
Inside your
C:/Users/user/Documents/Quanserfolder that was created when downloading the Academic Resources, create a new folder with whatever name you prefer. We suggest calling it something likeArlington_Competition. This should live in the same level as the numbered folders (0_libraries, 1_setup ...). -
Click the green Code button at the top of this GitHub page, click Download ZIP at the bottom of the menu that pops up.
-
Unzip/extract the folder in your system.
-
Go into Quanser_UT_Arlington_Comp-main, you will see the individual files. Copy all the contents of that folder into your newly created
C:/Users/user/Documents/Quanser/Arlington_Competitionfolder.
Note that this download is necessary but done only to get the Quanser blocks for Simulink. Do not try to open this version. Download the latest Quanser Interactive Labs from the Python section below and follow those instructions too.
-
Download Quanser Interactive Labs through the MATLAB Add On Explorer.
Quanser Interactive Labs for MATLAB
Even after following the instructions at the top of the page for Python users, you still need to follow the instructions below.
-
Download the latest Quanser Interactive Labs from here.
-
Unzip the folder and move the complete folder (QLabs) inside the folder you created
C:/Users/user/Documents/Quanser/Arlington_Competition. -
Open your new
QLabsfolder. Double click onQuanser Interactive Labs.exe, on the window that opens, fill your login information, clickremember meand log in. -
Close
Quanser Interactive Labs. This steps ensure that when you run the provided bat files, you do not have to worry about logins anymore.
-
Make sure you do not have Quanser Interactive Labs open.
-
Open the correct navigator file:
- If you are going to be using Simulink, open
Arlington_Competition/Navigator.slx. - If you are going to be using Python, open
navigator.pyin your preferred development environment. We use Visual Studio Code.
- If you are going to be using Simulink, open
-
From your
Arlington_Competitionfolder, runStart_Everything_language.bat.- NOTE: The
_matlabversion only exist for students who do not have python on their system. It does the same as the_pythonversion but spawns things in the workspace using a matlab file, it is significantly slower since matlab through the command line is a bit slow. Use the_pythonif you have python installed on your computer. - This will open Quanser Interactive Labs and load the QDrone Workspace.
- It will create colored structures around the workspace.
- It will initialize the Drone models that will receive commands to fly the drone.
- The drone will take flight and hover around the [0,0,1] location in the world.
- NOTE: The
-
Using Simulink or Python, click run on your opened Navigator file. The existing examples will move the QDrone slowly in X,Y,Z as defined by the existing sine waves. If your drone goes unstable, please refer to the next section.
- Both files run at 200Hz and display cameras at 30Hz.
- Both files take drone commands. In Simulink they are the
Drone Cmdsin theDroneStack Commsblock. In Python, there iscmd_x,cmd_y,cmd_z,cmd_yaw. - Both files will display the following cameras: left, right, back, downward, RealSense RGB and RealSense Depth.
- If you are using Python, the file includes comments as well as a section where you can modify or add code to help prevent breaking existing files.
- the variable simulationTime shows how long the code will run for. You can also stop it using Ctrl+C.
-
To stop everything:
- Stop your Simulink or Python file.
- From your
Arlington_Competitionfolder, run CleanUp.bat. - Close Quanser Interactive Labs.
If your QDrone2 is unstable when running our provided navigator files, it probably is because Quanser Interactive Labs (qlabs) is pushing your graphics card too much. Follow these instructions to fix that.
-
In
QLabsfolder. Double click onQuanser Interactive Labs.exe, this will log you in and show you the first page of the application. -
Click on
Settingson the top right and turn onShow advanced options
-
Click on QDrone and select the Warehouse Workspace.
-
With the Warehouse Workspace now opened, click on settings. Activate show comms per second and show frames per second. Click on Advanced Settings.
-
Under advanced settings, disable
Use main menu defaultat the top. In Advanced Graphics Options -
Exit the workspace and close Quanser Interactive Labs.
-
Go back to the previous section and try to run your files again.


