3. Hardware Platform Configuration

This chapter will introduce the RC system configuration, Pixhawk autopilot system configuration, airframe, and propulsion system configuration.

3.1. RC System Configuration

There are two RC system products presented in this book, which are RadioLink AT9S and Futaba T14SG. The receivers of these RC systems have the S.BUS output function that can transmit the PWM signals of all channels to the flight control through one data line. Radio Link AT9S is relatively inexpensive, and it is suitable for indoor experiments; Futaba T14SG is relatively expensive, but it offers better performance and reliability, which makes it more suitable for actual outdoor flight tests. RC transmitters with “Left-hand throttle (Mode 2)” configuration are selected in this book, whose left stick is the throttle lever without the auto-return function. RC transmitters with “Right-hand throttle (Mode 1)” and “Left-hand throttle” configurations have different hardware structures that cannot be modified through the software setting page; thus, readers need to pay attention to this. The following subsections detail the configuration steps of the two RC systems. Other RC systems can be configured in a similar way.

3.1.2. Configuration for Futaba T14SG

The connection between the Futaba receiver and the Pixhawk autopilot is slightly different from that of the RadioLink receiver. The specific connection is shown in Fig. 2.21. In the following paragraphs, the setup process for the Futaba RC transmitter is introduced.

../_images/Quan-ch2-Fig2.21.jpg

Fig. 2.21 Pixhawk and Futaba receiver connection diagram

As shown in Fig. 2.22, the Futaba T14SG RC transmitter needs to use six channels: the J1 stick (CH1, roll channel), J2 stick (CH2, pitch channel), J3 stick (CH3, throttle channel), J4 stick (CH4, yaw channel), SE three-position switch (upper-left switch, CH5 mode channel), and SG three-position switch (upper-right switch, CH6 mode channel). The basic process of setting the Futaba T14SG RC transmitter is summarized as follows.

../_images/Quan-ch2-Fig2.22.jpg

Fig. 2.22 Futaba T14SG RC transmitter

(1). Double-click the “LINK” button on the RC transmitter in Fig. 2.22 to enter the “LINKAGE MENU” link setting page. As shown in Fig. 2.23a, enter the “MODEL TYPE” page and change the “TYPE” to “MULTICOPTER”;

(2). Go back to the “LINKAGE MENU” page, and enter the “FUNCTION” page to confirm the channel mapping is the same as that shown in Fig. 2.23b, wherein the first to fourth channels of the RC transmitter correspond to the J1–J4 sticks;

(3). Go back to the “LINKAGE MENU” page, and enter the “REVERSE” page to confirm that the reverse direction of the channel is as shown in Fig. 2.23c, i.e., only the third channel (throttle) is reversed;

(4). Go back to the “LINKAGE MENU” page, and enter the “FUNCTION”, and scroll to the second page for the setting of CH5 to CH8. As shown in Fig. 2.23d, set the “CTRL” option of the “5 MODE” channel to “SE” stick (the upper-left stick of the RC transmitter).

(5). As in the previous step, set the “6 AUX1” channel shown in Fig. 2.23d to the “SG” stick (the upper-right stick of the RC transmitter).

After the above settings, similar to the RadioLink AT9S in Fig. 2.20, it is also necessary to verify that the PWM output of each stick follows the correct definition required by this book.

../_images/Quan-ch2-Fig2.23.jpg

Fig. 2.23 Futaba T14SG RC transmitter

3.2. Pixhawk Autopilot System Configuration

Several basic firmware uploading and configuration operations are required for the brand-new Pixhawk to ensure that the Pixhawk autopilot meets the experimental requirements and ensure that the operation and configuration of Pixhawk are correct. The configuration method is summarized below.

(1). Open the QGC software.

(2). As shown in Fig. 2.24a, click the “gear” icon to enter the setting page; then, click the “Firmware” button to enter the firmware burning page.

(3). Connect the Pixhawk autopilot and the computer using a USB cable. At this time, the software will automatically recognize the Pixhawk hardware. As shown in Fig. 2.24b, a firmware configuration window will pop up on the right side of the UI. Select the “PX4 Flight Stack” item, and click “OK”; then, QGC begins to automatically download (see Fig. 2.24 if the computer is not connected to the Internet) and burn the latest PX4 firmware into the Pixhawk autopilot hardware.

../_images/Quan-ch2-Fig2.24.jpg

Fig. 2.24 Pixhawk autopilot configuration on QGC

(4). After the firmware is burned, the Pixhawk will automatically restart and reconnect to the QGC software. Then, as shown in Fig. 2.25, enter the “Airframe” tab, select “HIL Quadcopter X” airframe type , and click the “Apply and Restart” button. Then the autopilot will automatically restart to finish the configuration for HIL simulation.

../_images/Quan-ch2-Fig2.25.jpg

Fig. 2.25 Selecting “HIL Quadcopter X” airframe type

(5). After rebooting, QGC will automatically reconnect to Pixhawk. Check each configuration page to ensure that the Pixhawk autopilot has been in the HIL simulation mode and that no warnings appear.

3.3. Airframe and Propulsion System Configuration

The parameters of the multicopter simulation model in both SIL and HIL simulations are from a quadcopter with a diagonal size (opposite motor axis distance) of 450 mm and a weight of 1.4 kg. For the subsequent flight experiments, it is necessary to ensure that the configuration of the multicopter is as close as possible to the simulation model. The experiments presented in this book select the most popular F450 multicopter (see Fig. 2.26) with the following configuration.

(1). Airframe : DJI Flame Wheel F450 airframe

  • Airframe weight (fuselage + arm + landing gear): 282 g
  • Protection airframe: weight: 4×32 g
  • Diagonal size: 450 mm
  • Take-off weight: within the range 800–1600 g
  • Recommended propeller: 8–10inches

(2). Propulsion system : DJI E310 propulsion suite (four motors, four ESCs, and four propellers)

  • Motor size: 23×12 mm, KV value: 960 RPM/V, weight: 60 g
  • Propeller size: 24×12.7 cm (9.4×5.0in), weight: 13 g
  • ESC size: 74×32×10 mm, maximum continuous current: 20 A, weight: 43 g

(3). Battery : GENS ACE LiPo battery

  • Capacity: 4000 mAh
  • Voltage: 3S (11.1 V)
  • Discharge rate: 25C
  • Weight: 300 g

(4). Autopilot : Pixhawk 1 (2MB flash version)

  • Compiling command: px4fmu-v3_default, size: 81×47×16 mm, weight: 36 g

  • GPS module: UBlox NEO-M8N GPS, module weight: 14 g, weight: 24 g

  • Other accessories: power module, buzzer, safety switch, connector, and antivibration damper weighing a total of 60 g

    ../_images/Quan-ch2-Fig2.26.jpg

    Fig. 2.26 F450 airframe and its components

After completing the assembly of the aerial vehicle, readers can follow the PX4 official website tutorial19 to conduct preliminary flight tests to ensure that all functions are normal.

If you have any question, please go to https://flyeval.com/course for your information.