forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5549d6c
commit 36dc195
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# XBox Controller | ||
|
||
To use an XBox controller with AirSim follow these steps: | ||
|
||
1. Connect XBox controller so it shows up in your PC Game Controllers: | ||
|
||
![Gamecontrollers](images/game_controllers.png) | ||
|
||
2. Connect to Pixhawk serial port using MavLinkTest.exe like this: | ||
```` | ||
MavLinkTest.exe -serial:*,115200 -proxy:127.0.0.1:14550 -server:127.0.0.1:14570 | ||
```` | ||
|
||
3. Run AirSim Unreal simulator with these `~/Documents/AirSim/settings.json` settings: | ||
```` | ||
"SitlIp": "", | ||
"SitlPort": 14560, | ||
"UdpIp": "127.0.0.1", | ||
"UdpPort": 14570, | ||
"UseSerial": false, | ||
```` | ||
|
||
4. Launch QGroundControl and you should see a new Joystick tab under stettings: | ||
|
||
![Gamecontrollers](images/qgc_joystick.png) | ||
|
||
Now calibrate the radio, and setup some handy button actions. For example, I set mine so that | ||
the 'A' button arms the drone, 'B' put it in manual flight mode, 'X' puts it in altitude hold mode | ||
and 'Y' puts it in position hold mode. I also prefer the feel of the controller when I check the | ||
box labelled "Use exponential curve on roll,pitch, yaw" because this gives me more sensitivity for | ||
small movements.] | ||
|
||
QGroundControl will find your Pixhawk via the UDP proxy port 14550 setup by MavLinkTest above. | ||
AirSim will find your Pixhawk via the other UDP server port 14570 also setup by MavLinkTest above. | ||
You can also use all the QGroundControl controls for autonomous flying at this point too. | ||
|