Quick Start Guide

Ardupilot Setup Guide

To enable DroneCAN detection, set the following parameters:

If the sensor is connected to the CAN 1 port:

  • CAN_P1_DRIVER=1

  • CAN_D1_PROTOCOL=1

If the sensor is connected to the CAN 2 port:

  • CAN_P2_DRIVER=1

  • CAN_D2_PROTOCOL=1

Set airspeed sensor type to DroneCAN:

  • ARSPD_TYPE=8

Save the configuration and reboot the flight controller for settings to take effect.

Before flying, please connect to the ground station to check that there is no wind and ensure that the airspeed value is within the range of 0~3m/s (if it exceeds the range, need to perform airspeed offset calibration)

  • Hold the pitot tube with your hand and blow air into the pitot tube. If the airspeed value changes according to the airflow speed, the inspection is complete.

Airspeed calibration

The airspeed ratio of different installations and individual airspeed gauges will be somewhat different. The airspeed gauge needs to be calibrated on the first flight.

  1. //Enable automatic airspeed calibration

  2. - ARSPD_AUTOCAL=1

There is also a great article on the Ardupilot documentation website that provides more insight into airspeed sensor calibration:

https://ardupilot.org/plane/docs/calibrating-an-airspeed-sensor.html#calibrating-an-airspeed-sensor

Perform calibration (choose one of the following two methods):

  • Method A: Lift off in QStabilize or QLoiter multi-axis mode and switch to FBWA (self-stabilizing A mode) to control the drone to fly and hover for about 5 minutes. After the ground station message bar prompts that the calibration is completed, execute the landing. With calibration's completion, set ARSPD_AUTOCAL to 0.

  • Method B: If you don’t know how to fly in FBWA mode, you can fly with the airspeed sensor enabled but not using it (ARSPD_USE=1; ARSPD_TYPE=8; do not fly in windy conditions when performing this operation); the aircraft will fly using ground speed (relative ground speed), and use Loiter mode to hover for about 5 minutes after takeoff. When the ground station message bar indicates the calibration is completed, perform the landing. After the calibration is completed, set ARSPD_AUTOCAL to 0.

The setup and configuration described in this chapter apply to the DroneCan Airspeed sensor with a controller running PX4 firmware.

PX4 Setup Guide

Run QGroundControl, and set the parameters below. Restart the vehicle to save the configurations.

descript
  • Set UAVCAN_ENABLE to Sensors automatic Config

  • Reboot

  • Set UAVCAN_SUB_ASPD to Enable

  • Set UAVCAN_SUB_DPRES to Enable

  • Reboot

Multiple Airspeed Sensors

If you have multiple airspeed sensors, then you can select which sensor is preferred as the primary source using ASPD_PRIMARY. Value 1, 2, and 3 reflect the order of the started airspeed sensor:

  • 0: Synthetic airspeed estimation (groundspeed minus windspeed)

  • 1: First airspeed sensor started (default)

  • 2: Second airspeed sensor started

  • 3: Third airspeed sensor started

The airspeed selector validates the selected sensor first and only falls back to other sensors if the selected sensor fails the airspeed checks (ASPD_DO_CHECKS is used to configure the checks).

The selected sensor is then used to supply data to the estimator (EKF2) and the controllers.

Performing the Calibration

  • Select the "Q" icon > Vehicle Setup > Sensors (sidebar) to open Sensor Setup.

  • Click the Airspeed sensor button.

  • Shield the sensor from the wind (i.e. cup it with your hand). Take caution not to block any of its holes.

  • Click OK to start the calibration.

  • Once asked, blow into the tip of the pitot tube to signal the end of calibration.

Tip

Blowing into the tube is also a basic way to check that the dynamic and static ports are installed correctly. If they are swapped, then the sensor will read a large negative differential pressure when you blow into the tube, and the calibration will abort with an error.

Last updated

Was this helpful?