For the most straightforward introduction to the system, you can run a "Loopback" simulation where the Ground Control interface and the 3D OpenGL renderer run on the same machine.
- Install qt-opensource-windows-x86-msvc2010-5.5.1.exe
- Download directx_Jun2010_redist.exe
Run it then choose an output folder,
From the extracted folder, run DXSETUP.exe - Install MSVC++2010.
- Click Start "Add an optional feature"
Install Graphics Tools.

Click "Add - Virtual Machine Users: > If the simulation window appears black, ensure that 3D Acceleration is enabled in your VM settings and that Guest Additions are installed. Without hardware acceleration, the DirectX 11 shaders may fail to render.
.
The program is also Linux compatible.
Instead of using MSVC, GCC is used.
If using this software on a PC as a ground control station there is nothing to do. The code shown below in z01_mainwindow.cpp includes XBox controller drivers for both Linux and Windows and they each have include guards for their OS.
#ifdef TARGET_HARDWARE_PI
//#include "systemDependent/joystickPoll_HelicopterMode.h"
#endif
#ifndef TARGET_HARDWARE_PI
#include "systemDependent/joystickPoll_Dummy.h"
#include "systemDependent/joystickPoll_Linux.h"
#include "systemDependent/joystickPoll_win.h"
#endif
Note:
If you wanted to run the software in an embedded target you would need to define:
TARGET_HARDWARE_PI.
This would disable the physics engine, OpenGL, and would enable sharing of SuperVars (Via I2C) with a flightboard (microcontroller with sensors and motor controllers.).
Regardless of what OS the software was installed to, as along as OpenGL is available, you can use the simulated helicopter in loopback
-
Pull the repo.
-
Double clikc SendingUnit.pro Qt Creator qill open.
-
Click the green "Play" triangle.
-
You will be prompted for parameters

Click OK then from theVectorFlight_Pegasus_Corefolder, selectdefaultSettings.rtz -
You will then see the following popup.

Click "OK" then close the "Pegasus Control" main window.

-
Copy this folder:
VectorFlight_Pegasus_Core/model(just the model subdir")
To the build or debug directory that was created when you clicked the green play button.
For instance, you should create this folder:
build-SendingUnit-Desktop_Qt_5_5_1_MSVC2010_32bit-Debug/model -
Click the green play triangle again.
You will see the following screen.
When you connect an XBox controller the following text should dissappear.

-
CLick "Main Display" --> "Controller Input"
To test your controller

-
CLick "Main Display" --> "Helicopter Simulation"
-
Press the "A" key to disable the Autopilot and take control of the aircraft.
-
Thumbstick up to take off.