Software Setup
This page configures the flight controller, the ELRS radio link, the sensors, JetCore and the depth camera. Work through it in order. Examples use ArduPilot Copter and Mission Planner. PX4 users can apply the same steps in QGroundControl.
Propellers must be off for this entire page.
In the tables below, SERIALn means the flight controller UART that the device is wired to. Look up its number in the MicoAir H743 pinout (see Wiring & Connections).
1. Flash the Flight Controller
- Connect the flight controller to your laptop with a USB-C cable. You do not need a battery for this.
- In Mission Planner, open Setup → Install Firmware. Select Copter and, when asked, choose the MicoAir H743 board target that matches the name printed on your board.
- After flashing, reconnect and set the frame:
| Parameter | Value | Meaning |
|---|---|---|
FRAME_CLASS | 1 | Quad |
FRAME_TYPE | 1 | X |
- Open Setup → Mandatory Hardware → Initial Tune Parameters, enter a 5-inch propeller and a 4S Li-ion battery, and apply the suggested values. This gives a much better starting tune for a small quad than the defaults.
- Reboot the flight controller.
2. Calibrate Sensors
- Accelerometer – Setup → Mandatory Hardware → Accel Calibration. Follow the six-position prompts with the drone resting on a flat surface. Then run Calibrate Level.
- Compass – Setup → Mandatory Hardware → Compass. Use the GPS module's compass as the primary compass. Take the drone outdoors, away from metal, and rotate it through all axes until calibration completes, then reboot.
3. Configure the ELRS Radio Link
Receiver
| Parameter | Value |
|---|---|
SERIALn_PROTOCOL | 23 (RCIN) |
RSSI_TYPE | 3 (receiver protocol) |
Reboot after setting these.
Binding
- Make sure the transmitter and receiver run compatible ELRS firmware versions.
- Set the same binding phrase on both with the ExpressLRS Configurator, or put the receiver into bind mode (power it on and off three times) and select Bind in the transmitter's ExpressLRS menu.
- A solid receiver LED means it is bound and linked.
RC calibration
- Mission Planner: Setup → Mandatory Hardware → Radio Calibration. Move every stick and switch to its limits, then click Click when Done.
- Check that moving each stick moves the matching bar in the correct direction. Reverse channels on the transmitter if needed.
Flight modes
ELRS normally uses channel 5 as a two-position switch, so put flight modes on a 3-position switch on channel 6.
| Switch position | Mode | Use |
|---|---|---|
| 1 | Stabilize | Manual, first hover |
| 2 | AltHold | Altitude held by barometer / rangefinder |
| 3 | Loiter | Position hold – needs GPS (outdoors) or external navigation |
Set FLTMODE_CH = 6 and assign the modes under Setup → Mandatory Hardware → Flight Modes.
4. ESC Setup & Motor Test
- Set the ESC protocol to DShot:
| Parameter | Value |
|---|---|
MOT_PWM_TYPE | 6 (DShot600) |
SERVO_BLH_AUTO | 1 (ESC passthrough for configuration tools) |
- Reboot. DShot ESCs do not need throttle calibration.
- Open Setup → Optional Hardware → Motor Test. Spin each motor at about 10% throttle for 2 seconds.
- Confirm the motor that spins matches the expected position, and that it turns the right way (viewed from above):
| Test button | Expected motor | Position | Rotation |
|---|---|---|---|
| A | Motor 1 | Front-right | CCW |
| B | Motor 4 | Rear-right | CW |
| C | Motor 2 | Rear-left | CCW |
| D | Motor 3 | Front-left | CW |
- Wrong motor spins? Check which ESC output the motor is soldered to, or remap the outputs with the
SERVOn_FUNCTIONparameters. - Right motor, wrong direction? Reverse it in the ESC configuration tool through passthrough, or swap any two of its three motor wires.
The motors hang upside down, so a motor that looks clockwise from below is turning counter-clockwise from above. Always judge direction from above.
5. Battery Monitor & Failsafes
| Parameter | Value | Notes |
|---|---|---|
BATT_MONITOR | 4 | Analog voltage and current |
BATT_CAPACITY | 5000 | mAh |
BATT_VOLT_MULT | Calibrate | Compare against a multimeter reading |
BATT_AMP_PERVLT | Calibrate | Compare against your charger's mAh reading |
BATT_LOW_VOLT | 13.2 | 3.3 V per cell |
BATT_CRT_VOLT | 12.8 | 3.2 V per cell |
BATT_FS_LOW_ACT | 2 | RTL (use 1, Land, when flying without GPS) |
BATT_FS_CRT_ACT | 1 | Land |
FS_THR_ENABLE | 1 | RC loss failsafe enabled |
Check that the battery voltage shown in Mission Planner matches a multimeter reading within 0.1 V before your first flight.
6. GPS
| Parameter | Value |
|---|---|
SERIALn_PROTOCOL | 5 (GPS) |
GPS1_TYPE | 1 (Auto) |
On ArduPilot versions before 4.6, the GPS type parameter is GPS_TYPE. Outdoors, check that the GPS gets a 3D fix and the drone's position appears on the map.
7. Rangefinder (TFmini-S)
| Parameter | Value |
|---|---|
SERIALn_PROTOCOL | 9 (Rangefinder) |
SERIALn_BAUD | 115 (115200) |
RNGFND1_TYPE | 20 (Benewake serial) |
RNGFND1_ORIENT | 25 (down) |
RNGFND1_MIN_CM | 10 |
RNGFND1_MAX_CM | 1200 |
Reboot, then check Status → rangefinder1 in Mission Planner while lifting the drone off the bench by hand. The distance should change smoothly.
On ArduPilot 4.6 and later, the range limits are RNGFND1_MIN and RNGFND1_MAX, in metres (0.1 and 12).
8. JetCore Companion Computer
Skip this section if your kit does not include JetCore.
- Flash JetPack to the Jetson Xavier NX following the JetCore flashing guide.
- Companion link – configure the flight controller UART wired to JetCore:
| Parameter | Value |
|---|---|
SERIALn_PROTOCOL | 2 (MAVLink 2) |
SERIALn_BAUD | 921 (921600) |
- On the Jetson, bridge MAVLink from the UART to your applications. See MAVLink Bridge. For example:
mavproxy.py --master=/dev/ttyTHS0 --baudrate 921600 \
--out=udp:127.0.0.1:14550
Replace /dev/ttyTHS0 with the UART device your JetCore exposes for the flight controller link.
9. Depth Camera
Skip this section if your kit does not include the camera.
- Install the Intel RealSense SDK (librealsense) on the Jetson, following Intel's instructions for Jetson and your JetPack version. Add the realsense-ros wrapper if you use ROS.
- Run
rs-enumerate-devicesand check that the camera is listed and connected at USB 3.x. If it shows USB 2.x, re-seat the FFC ribbon at both adapters. - Open
realsense-viewer(or the ROS wrapper in RViz) and confirm:- the depth image updates smoothly
- the image is level, matching the camera bracket
- no part of the drone appears in the view
10. Optional: GPS-Denied Navigation
The depth camera and JetCore let you fly indoors without GPS by sending visual odometry from the Jetson to the flight controller. Once your odometry node publishes ODOMETRY or VISION_POSITION_ESTIMATE over MAVLink, set:
| Parameter | Value |
|---|---|
VISO_TYPE | 1 (MAVLink) |
EK3_SRC1_POSXY | 6 (ExternalNav) |
EK3_SRC1_VELXY | 6 (ExternalNav) |
EK3_SRC1_POSZ | 1 (Barometer) or 2 (Rangefinder) |
EK3_SRC1_YAW | 6 (ExternalNav) |
Validate the position estimate on the ground (by carrying the drone around) before flying in Loiter or Guided mode. To switch between GPS outdoors and visual odometry indoors, set up a second EKF source set (EK3_SRC2_*) and select it with an RC switch.
Setup Complete
- Frame set to Quad-X; initial tune applied
- Accelerometers and compass calibrated
- Receiver bound, RC calibrated, flight modes on channel 6
- Motor order and rotation verified
- Battery monitor calibrated; failsafes set
- GPS fix and rangefinder reading correct
- JetCore receiving MAVLink; depth camera streaming (if included)