Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 3.73 KB

prereq.md

File metadata and controls

36 lines (29 loc) · 3.73 KB

Prerequisites

What hardware do you need?

Computer

Intel Core i7 or equivalent PC with 32GB of RAM and a SSD and GPU with at least 4GB of RAM. Large environments in Unreal requires a lot of RAM and a beefy GPU card. The typical computer hardware we use for development purposes usually have 6 to 12 cores and graphics card such as NVidia TitanX or NVidia GTX 1080 with 32GB to 64GB RAM and fast SSD.

RC Transmitter and Receiver

This is the remote control that you usually use for real RC vehicles such as quadrotors. Our favorite is FrSky Taranis X9D Plus because it has built-in USB ports. We have also tested a Futaba 14SG, so if you have one of those already you should be fine.

You can also fly without a remote control. See alternative to RC.

Flight controller

Our favorite flight controller is Pixhawk or the Pixhawk Mini. You can also use other variants such as Pixfalcon, or the new Pixhawk clones; however, we haven't tested them yet. In theory, you should be able to use any flight controller that supports MavLink protocol. Our code is tested with the PX4 firmware. We have not tested Arducopter or other mavlink implementations. Some of the flight API's do use the PX4 custom modes in the MAV_CMD_DO_SET_MODE messages (like PX4_CUSTOM_MAIN_MODE_AUTO)

You can also fly without flight controller hardware. See alternative to RC.

Setup steps

  1. Make sure your RC reciever is bound with its RC transmitter. Connect the RC trasmitter to the flight controller's RC port.
  2. Download QGroundControl, launch it and connect your flight controller to the USB port.
  3. Install the PX4 firmware v1.4.4 from github. The later releases have a bug that we are working with PX4 team to fix.
  4. In QGroundControl, configure your Pixhawk for HIL simulation by selecting the HIL Quadrocopter X airframe. After PX4 reboots, check that "HIL Quadrocopter X" is indeed selected. You might also want to use QGroundControl to calibrate your RC and set up Flight Mode switch among other things (see below) so everything is green.

Using the Remote Control

When using hardware-in-loop mode, you can use remote controls such as Fly Sky, Spektrum, Futaba etc.

  1. Connect the receiver for your remote control to the Pixhawk board. Make sure your remote control is bound to that receiver.
  2. In QGroundControl, go to Radio tab and calibrate (make sure, remote control is on and the receiver is showing the indicator for the binding).
  3. Go to the Flight Mode tab and chose one of the remote control switches as "Mode Channel". Then set (for example) Stabilized and Attitude flight modes for two positions of the switch.
  4. Go to the Tuning section of QGroundControl and set appropriate values. For example, for Fly Sky's FS-TH9X remote control, following settings gives more realistic feel: Hover Throttle = mid+1 mark, Roll and pitch sensetivity = mid-3 mark, Altitude and position control sensitivity = mid-2 mark.
  5. You can usually arm the vehicle by lowering and bringing two sticks of RC together (you don't need QGroundControl after the initial setup). Now you can use RC to fly in the simulator. Typically the Altitude mode gives better experience for beginners because this mode lets the autopilot automatically maintain an altitude when the throttle stick is approximately in the middle.