Using Joystick/Gamepad (Alternative to RC)
hi, I'm trying to run is using SITL and a Joystick controller. Wenn I connect it to the QGroundControl, nothing happens, shown as below

the first three steps are well done, I'm stuck at step 4, so my question is: do we need special controller, or any Joystick can work? thank you very much!
- Connect Joystick/Gamepad such as XBox 360 controller to PC. Start QGroundControl.
- Click on the purple "Q" icon on left in tool bar to reveal the Preferences panel.
- Go to General tab and check the Virtual Joystick checkbox.
- Go back to settings screen (gears icon), click on Parameters tab, type COM_RC_IN_MODE in search box and change its value to either Joystick/No RC Checks or Virtual RC by Joystick.
- You should now see a new tab "Joystick" where you can do the calibration.
Hi @fmzhu, I think we'll be needing a bit more information on how much of the entire environment you have running right now.
Do you have the PX4 instance running on your machine, and an active Unreal Editor project? Does your Unreal environment correctly connect to the PX4 simulator? You should see a lot of lines appearing, just like this:
Having a correct connection from the Unreal 4.14.3 simulation to the PX4 is a requirement to be able to set everything up in QGroundControl.
I'm having the same issue. I'm trying to use an Xbox 360 controller and I don't see this option:
- Go back to settings screen (gears icon), click on Parameters tab, type COM_RC_IN_MODE in search box and change its value to either Joystick/No RC Checks or Virtual RC by Joystick.
Hi @alexferra, you won't see the joystick option before you have the entire AirSim environment up and running. You need the PX4 SITL running in bash and an active simulation in Unreal Editor 4.14.3. Only then will the joystick option (and a lot more really) appear in QGroundControl.
To verify you have the environment correctly set up, you need to check your PX4 bash for output like in the screenshot I posted above. That way, you know the simulator is running and correctly connected to PX4.
I also stuck at the same part. I have the AirSim environment, QGroundControl and PX4. Can you explain how to bring these together? When I start PX4 it stops at 'waiting for initial data on UDP port 14560. Please start the flight simulator to proceed.' In QGroundControl is no Joystick recognized.
Hi @gregoryps1989, sounds like you need to start AirSim in AirSimGameMode if you see the 'waiting for initial data on UDP port 14560' message on PX4. QGroundControl won't show you any joystick option if there is no connection to a vehicle (which is the case in your situation), so you need to have the AirSim simulation running first.
My suggestion: watch the highly informative instructional videos Chris has made. I have also written an article explaining how to use a Phantom 2 controller with the AirSim simulation, about halfway down I specify the order in which the different steps should be executed to get everything running correctly.
Let us know if this helps!
Hi @Timebutt, thank you for your quick response. I guess I have trouble making a correct 'settings.json'-file. At first i used the standard code from the instruction site, but starting AirSim it complains not finding a correct flight controller. Then I copied your code from here and now it works somehow.
Right the key there was "UseSerial": true is for direct serial port connection to Pixhawk hardware, whereas you are using the SITL mode so you needed "UseSerial": false.