Software Setup
This page configures the flight controller, the MK15 link, the JetCore companion computer and the Livox Mid-360. 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.
1. Flash the Flight Controller
- Unplug the JetCore USB lead from the carrier, then connect your laptop to the Cube Orange+'s micro-USB port. The Cube has a single USB interface, so only one USB host should be connected at a time. You do not need a battery for this.
- In Mission Planner, open Setup → Install Firmware. Select Copter and, when asked, choose the CubeOrangePlus board target.
- After flashing, reconnect and set the frame:
| Parameter | Value | Meaning |
|---|---|---|
FRAME_CLASS | 1 | Quad |
FRAME_TYPE | 1 | X |
- Set the board orientation. The Cube is mounted vertically on the front of the chassis, so set
AHRS_ORIENTATIONto match its mounting. Then tilt the drone by hand and check that the artificial horizon in Mission Planner moves the same way. - Reboot the Cube.
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 Cube's internal compass. Rotate the drone through all axes until calibration completes, then reboot.
The kit does not include a GPS. If you add one, connect it to the MINI CC GPS port and calibrate its compass instead of (or alongside) the internal one.
3. Configure the MK15 Link
The MK15 air unit and handheld ground station are shipped paired. Power both up and confirm the link indicator on the handheld before continuing.
RC input (SBUS)
- On the MK15 handheld, map the sticks to channels 1–4 (roll, pitch, throttle, yaw) and a 3-position switch to channel 5 for flight modes.
- 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 handheld if needed.
Telemetry (MAVLink)
Set the serial port wired to the MK15 air unit (the MINI CC R_UART (radio telemetry) port, normally SERIAL1):
| Parameter | Value |
|---|---|
SERIAL1_PROTOCOL | 2 (MAVLink 2) |
SERIAL1_BAUD | Match the MK15 air unit UART baud rate (for example 57 for 57600) |
The handheld can then display telemetry in its ground station app, or forward it to a laptop over the MK15 network.
Flight modes
| Switch position | Mode | Use |
|---|---|---|
| 1 | Stabilize | Manual, first hover |
| 2 | AltHold | Altitude held by barometer / rangefinder |
| 3 | Loiter or Guided | Needs a position source (GPS or external navigation) |
Set FLTMODE_CH = 5 and assign the modes under Setup → Mandatory Hardware → Flight Modes.
4. ESC Calibration & Motor Test
- Set
MOT_PWM_TYPE = 0(standard PWM) for the Emax 30A ESCs. - Follow Setup → Mandatory Hardware → ESC Calibration (all-at-once method). With props off, the ESCs learn the throttle range from the Cube.
- 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:
| 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? Swap the ESC signal leads on the MINI CC M1–M4 header.
- Right motor, wrong direction? Swap any two of its three motor wires on the ESC.
5. Battery Monitor & Failsafes
| Parameter | Value | Notes |
|---|---|---|
BATT_MONITOR | 4 | Analog voltage and current |
BATT_CAPACITY | 10000 | mAh |
BATT_VOLT_MULT | Calibrate | Compare against a multimeter reading |
BATT_AMP_PERVLT | Calibrate | Compare against a clamp meter or charger mAh |
BATT_LOW_VOLT | 21.0 | 3.5 V per cell |
BATT_CRT_VOLT | 20.4 | 3.4 V per cell |
BATT_FS_LOW_ACT | 1 | Land (use 2, RTL, only with a working position source) |
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. Rangefinder (TFmini-S)
| Parameter | Value |
|---|---|
RNGFND1_TYPE | 25 (Benewake TFmini-Plus/TFmini-S over I2C) |
RNGFND1_ADDR | 16 (0x10) |
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). If no reading appears, the TFmini-S may still be in its factory UART mode. Switch it to I2C with Benewake's configuration tool.
7. JetCore Companion Computer
- Flash JetPack to the Jetson Xavier NX following the JetCore flashing guide.
- Companion link – JetCore talks to the Cube over USB (cable S1 to the carrier's USB port). The Cube's USB port speaks MAVLink by default, so no serial-port parameters need changing. Reconnect the JetCore USB lead once flight controller setup is finished.
- On the Jetson, check that the Cube appears as a USB serial device:
ls /dev/serial/by-id/
- Bridge MAVLink from the Cube to your applications and to the ground station. See MAVLink Bridge. For example:
mavproxy.py --master=/dev/ttyACM0 --baudrate 115200 \
--out=udp:127.0.0.1:14550 --out=udp:192.168.144.255:14550
Replace /dev/ttyACM0 with the device listed under /dev/serial/by-id/.
Network configuration
Give the Jetson's Ethernet interface a static address on both the Livox subnet and the SIYI subnet, so it can talk to the LiDAR and to the ground station:
sudo nmcli con add type ethernet ifname eth0 con-name jasper-lan \
ipv4.method manual ipv4.addresses "192.168.1.50/24,192.168.144.50/24"
sudo nmcli con up jasper-lan
192.168.1.50 is the Livox SDK's default host address. If you use a different address, set it as the host IP in the Livox driver configuration. Choose a 192.168.144.x address that is not already used by an MK15 device.
8. Livox Mid-360
- Install Livox-SDK2 and livox_ros_driver2 on the Jetson, following Livox's instructions for your ROS version.
- In the driver's
MID360_config.json, set:- the host IP to
192.168.1.50(the Jetson address from above) - the LiDAR IP to
192.168.1.1XX(from your unit's serial number)
- the host IP to
- Launch the driver and view the point cloud in RViz. Confirm:
- the cloud updates at 10 Hz
- the ground plane appears tilted, matching the front-tilted mount (correct it with the extrinsic parameters in the driver config)
- no part of the drone's own frame blocks the view
9. Optional: GPS-Denied Navigation
Jasper is designed to fly without GPS by feeding LiDAR or visual odometry from the Jetson to the Cube. 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.
Setup Complete
- Frame set to Quad-X, accelerometers and compass calibrated
- RC calibrated, flight modes on channel 5
- ESCs calibrated; motor order and rotation verified
- Battery monitor calibrated; failsafes set
- Rangefinder reading correctly
- JetCore receiving MAVLink; Livox point cloud visible
Now fit the propellers (Step 11) and continue to Pre-flight & First Flight.