(25) (25.7) ARK Flow Open Source Optical Flow and Distance Sensor

Article directory

Preface

25.7.1 Where to buy

25.7.2 Connecting to the autopilot

25.7.3 Additional instructions

25.7.4 Testing and Setup

25.7.5 Parameter description


Preface

ARK Flow Open Source Optical Flow and Distance Sensor is an open source optical flow sensor that includes a Broadcom AFBR lidar and uses the CAN protocol to communicate with the autopilot . This can be used to improve horizontal position control, especially in environments without GPS .


25.7.1 Where to buy

The sensor is available from ARK Electronics .

25.7.2 Connecting to the autopilot

1. ARK Flow uses Pixhawk standard 4 -pin JST GH debug cable to connect to the CAN bus.

2. Insert other sensors intosecond CAN interface of ARK Flow to connect multiple sensors.

3. The recommended installation direction is that the connector on the circuit board faces the rear of the aircraft, as shown in the figure below.

4. Connect the sensor to the CAN port of the autopilot .

5. Set FLOW_TYPE = 6 ( DroneCAN ).

6. Set CAN_P1_DRIVER = 1 to enable DroneCAN .

7.Set CAN_D1_PROTOCOL =1( DroneCAN ) .

Using airborne lidar:

1. Set RNGFND1_TYPE = 24 ( DroneCAN ).

2. Set RNGFND1_MAX_CM = 3000 and set the maximum ranging range of the rangefinder to 30m .

25.7.3 Additional instructions

FlowHold does not require the use of a rangefinder.

Performance can be improved by setting sensors position parameters . For example, if the sensor is mounted 2cm forward and 5cm down from the center of rotation of the frame , set FLOW_POS_X to 0.02 and FLOW_POS_Z to 0.05 .

25.7.4 Testing and Setup

See Optical Flow Sensor Testing and Setup .

25.7.5 Parameter description

1. FLOW_TYPE : Optical flow sensor type

NOTE: A reboot is required after making the change.

Values

Value

Meaning

0

None

1

PX4Flow

2

Pixart

3

Bebop

4

CXOF

5

MAVLink

6

DroneCAN

7

MSP

8

UPFLOW

2. CAN_P1_DRIVER :Virtual driver index used with the physical CAN interface

NOTE: A reboot is required after making the change.

Enable this option to use the CAN bus.

Values

Value

Meaning

0

Disabled

1

First driver

2

Second driver

3

Third driver

3. CAN_D1_PROTOCOL : Enable specific protocols on the virtual driver

Note: This parameter is for advanced users.
Note: A restart is required after making changes.
Enable this option to launch the selected protocol that will use this virtual driver.

Values

Value

Meaning

0

Disabled

1

DroneCAN

4

PiccoloCAN

5

Cantester

6

EFI_NWPMU

7

USD1

8

KDECAN

10

Scripting

11

Benewake

12

Scripting2

4. RNGFND1_TYPE : Rangefinder type

Type of connected rangefinder.

Values

Value

Meaning

0

None

1

Analog

2

MaxbotixI2C

3

LidarLite-I2C

5

PWM

6

BBB-PRU

7

LightWareI2C

8

LightWareSerial

9

Bebop

10

MAVLink

11

USD1_Serial

12

LeddarOne

13

MaxbotixSerial

14

TeraRangerI2C

15

LidarLiteV3-I2C

16

VL53L0X or VL53L1X

17

NMEA

18

WASP-LRF

19

BenewakeTF02

20

Benewake-Serial

21

LidarLightV3HP

22

PWM

23

BlueRoboticsPing

24

DroneCAN

25

BenewakeTFminiPlus-I2C

26

LanbaoPSK-CM8JL65-CC5

27

BenewakeTF03

28

VL53L1X-ShortRange

29

LeddarVu8-Serial

30

HC-SR04

31

GYUS42v2

32

MSP

33

USD1_CAN

34

Benewake_CAN

35

TeraRangerSerial

36

Lua_Scripting

100

SITL

5. RNGFND1_MAX_CM : Maximum distance of rangefinder

The maximum distance (in centimeters) that a rangefinder can reliably read.

Increment

Units

1

centimeters

Guess you like

Origin blog.csdn.net/qq_20016593/article/details/133266783