Skip to main content

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.

danger

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​

  1. Connect the flight controller to your laptop with a USB-C cable. You do not need a battery for this.
  2. 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.
  3. After flashing, reconnect and set the frame:
ParameterValueMeaning
FRAME_CLASS1Quad
FRAME_TYPE1X
  1. 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.
  2. Reboot the flight controller.

2. Calibrate Sensors​

  1. Accelerometer – Setup → Mandatory Hardware → Accel Calibration. Follow the six-position prompts with the drone resting on a flat surface. Then run Calibrate Level.
  2. 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.

Receiver​

ParameterValue
SERIALn_PROTOCOL23 (RCIN)
RSSI_TYPE3 (receiver protocol)

Reboot after setting these.

Binding​

  1. Make sure the transmitter and receiver run compatible ELRS firmware versions.
  2. 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.
  3. A solid receiver LED means it is bound and linked.

RC calibration​

  1. Mission Planner: Setup → Mandatory Hardware → Radio Calibration. Move every stick and switch to its limits, then click Click when Done.
  2. 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 positionModeUse
1StabilizeManual, first hover
2AltHoldAltitude held by barometer / rangefinder
3LoiterPosition 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​

  1. Set the ESC protocol to DShot:
ParameterValue
MOT_PWM_TYPE6 (DShot600)
SERVO_BLH_AUTO1 (ESC passthrough for configuration tools)
  1. Reboot. DShot ESCs do not need throttle calibration.
  2. Open Setup → Optional Hardware → Motor Test. Spin each motor at about 10% throttle for 2 seconds.
  3. Confirm the motor that spins matches the expected position, and that it turns the right way (viewed from above):
Test buttonExpected motorPositionRotation
AMotor 1Front-rightCCW
BMotor 4Rear-rightCW
CMotor 2Rear-leftCCW
DMotor 3Front-leftCW
  • Wrong motor spins? Check which ESC output the motor is soldered to, or remap the outputs with the SERVOn_FUNCTION parameters.
  • Right motor, wrong direction? Reverse it in the ESC configuration tool through passthrough, or swap any two of its three motor wires.
tip

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​

ParameterValueNotes
BATT_MONITOR4Analog voltage and current
BATT_CAPACITY5000mAh
BATT_VOLT_MULTCalibrateCompare against a multimeter reading
BATT_AMP_PERVLTCalibrateCompare against your charger's mAh reading
BATT_LOW_VOLT13.23.3 V per cell
BATT_CRT_VOLT12.83.2 V per cell
BATT_FS_LOW_ACT2RTL (use 1, Land, when flying without GPS)
BATT_FS_CRT_ACT1Land
FS_THR_ENABLE1RC 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​

ParameterValue
SERIALn_PROTOCOL5 (GPS)
GPS1_TYPE1 (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)​

ParameterValue
SERIALn_PROTOCOL9 (Rangefinder)
SERIALn_BAUD115 (115200)
RNGFND1_TYPE20 (Benewake serial)
RNGFND1_ORIENT25 (down)
RNGFND1_MIN_CM10
RNGFND1_MAX_CM1200

Reboot, then check Status → rangefinder1 in Mission Planner while lifting the drone off the bench by hand. The distance should change smoothly.

note

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.

  1. Flash JetPack to the Jetson Xavier NX following the JetCore flashing guide.
  2. Companion link – configure the flight controller UART wired to JetCore:
ParameterValue
SERIALn_PROTOCOL2 (MAVLink 2)
SERIALn_BAUD921 (921600)
  1. 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.

  1. 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.
  2. Run rs-enumerate-devices and 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.
  3. 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:

ParameterValue
VISO_TYPE1 (MAVLink)
EK3_SRC1_POSXY6 (ExternalNav)
EK3_SRC1_VELXY6 (ExternalNav)
EK3_SRC1_POSZ1 (Barometer) or 2 (Rangefinder)
EK3_SRC1_YAW6 (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)