PX4 / ArduPilot Compatible | Global Shipping | Technical Support | Bulk Order Available
Pixhawk Flight Controller & Drone Autopilot Parts Store
Menu
More
PX4 / ArduPilot Compatible | Global Shipping | Technical Support | Bulk Order Available
Welcome
Sign in to your account
Access your account, saved items, orders, and personalized shopping experience.
Shopping Cart

Shopping cart is empty

Welcome back! If you had items in your shopping cart, we saved them for you. Sign in now to see them, or whenever you are ready to check out.

H-Flow (DroneCAN) Setup Guide

Mounting

The recommended mounting orientation is with the connectors on the board pointing toward the back of the vehicle, as shown in the following picture.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FRI9OP6CJkgaC0cJScXcy%252Fflow mount1
This corresponds to the default value (0) of the parameter SENS_FLOW_ROT. Change the parameter appropriately if using a different orientation. The sensor can be mounted anywhere on the frame, but you will need to specify the focal point position, relative to the vehicle's center of gravity, during PX4 configuration.

PX4 Configuration

    Connect H-FLOW to CAN port
    Set the following parameters:

Enable optical flow fusion by setting EKF2_OF_CTRL.
To optionally disable GPS aiding, set EKF2_GPS_CTRL to 0.
Enable UAVCAN_SUB_FLOW.
Enable UAVCAN_SUB_RNG.
Set EKF2_RNG_A_HMAX to 10.
Set EKF2_RNG_QLTY_T to 0.2.
Set UAVCAN_RNG_MIN to 0.08 (minimum range is 80mm)
Set UAVCAN_RNG_MAX to 30 (max range is 30m)
Set SENS_FLOW_MINHGT to 0.08.
Set SENS_FLOW_MAXHGT to 30.
Set SENS_FLOW_MAXR to 7.4 to match the PAW3902 maximum angular flow rate.
The parameters EKF2_OF_POS_X, EKF2_OF_POS_Y, and EKF2_OF_POS_Z can be set to account for the offset of the H-Flow from the vehicle centre of gravity.

    Reboot

After connecting the sensor to the autopilot, connect it to the autopilot using QGroundControl. Open the MAVLink Inspector screen for DISTANCE_SENSOR. If the sensor is OK, you can see that the current_distance number is non-zero.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x prod.appspot.com%2Fo%2Fspaces%252FLIgtGDAvVGkCKGOJb1bR%252Fuploads%252FqUZJ93dBd4ZfYzmAVT9w%252Fflow qgc insp
Refer to link below for the latest PX4 Optical Flow setup info
Optical Flow | PX4 Guide (main)

Ardupilot Setup Guide

    Connect H-FLOW to CAN port
    Set the following parameters:

FLOW_TYPE = 6 (DroneCAN)
CAN_P1_DRIVER = 1
CAN_D1_PROTOCOL = 1
RNGFND1_TYPE = 24
RNGFND1_MAX_CM = 3000 (max range 30m

EK3_SRC_OPTIONS = 0 (disable FuseALLVelocities

EK3_FLOW_DELAY (default)
EK3_SRC1_POSXY = 0 (use optical flow)
EK3_SRC1_VELXY = 5
EK3_SRC1_POSZ = 1
EK3_SRC1_VELZ = 0
EK3_SRC1_YAW = 1
FLOW_POS_X, FLOW_POS_Y, FLOW_POS_Z (H-FLOW position offsets based on its mounting position)

    Reboot

After connecting the sensor to the autopilot, connect to the autopilot using Mission Planner and open the Status tab of the Flight Data screen. If the sensor is operational, you should see non-zero opt_m_x, opt_m_y, and opt_qua values.
image?url=https%3A%2F%2F2367252986 files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook x
Refer to link below for the latest Ardupilot Optical Flow setup info
image?url=https%3A%2F%2Fardupilot.org%2Fcopter%2F static%2Ffavicon copterOptical Flow Sensor Testing and Setup Copter documentation

About The Author

pixhawk

pixhawk

Other Posts by This Author

XBP9X Radio

XBP9X Radio Specification

pixhawkJuly 11, 20250 Comments
Product Specification FREQUENCY RANGEISM 902 to 928 MHzTRANSMIT POWER (Software Selectable)Up to 30 dBm*CHANNELS10 hopping sequences share 50…
XBP9X Radio

XBP9X Radio Pinout

pixhawkJuly 11, 20250 Comments
Data Port PinSignalVolt1(red)NC—2(black)RX+3.3V3(black)TX+3.3V4(black)CTS+3.3V5(black)RTS+3.3V6(black)GNDGND Power Port PinSignalVolt1(red)BAT+7-35V2(red)BAT+7-35V3(black)BAT-GND4(black)BAT-GND
XBP9X Radio

XBP9X Radio Antenna

pixhawkJuly 11, 20250 Comments
SpecificationsQT900LFrequency range902锝?28 MHzBand Width26 MHzPolarizationverticalGain3 dBiInput impedance50惟SWR鈮?.5Maximum power20WConnectorRPSMA (female)Total length19.6 cm (foldable antenna)Weight40g

Leave a Reply

Your email address will not be published. Required fields are marked *

Sidebar

Categories

Recent Posts

Recennt Comments

    Blog Single Sidebar