Setup Instructions

Connection Diagram

First, Twist the provided 4 pin CAN cables as this will cancels out electromagnetic interference (noise) and reduces crosstalk by ensuring external fields affect both wires equally, allowing receivers to filter it out, leading to cleaner signals, better reliability, and efficient data transmission in noisy environments. It also helps manage physical aspects like stability, preventing tangles, and ensuring even stress distribution.

Mounting

Below is the recommended mounting orientation. The connectors on the board should point towards the back of the vehicle with the sensors facing downwards.

The above mounting is the default value (0) of the parameter SENS_FLOW_ROT. If you want to mount in a different orientation, change this parameter accordingly.

PX4 Configuration

Agam FloRange Sensor is a CAN based device. The CAN device needs to be powered for certain parameters to show up. So, the recommended way is to power the device through USB port from Autopilot or external battery and then open QGroundControl.

After connecting the sensor to the autopilot, connect 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.

Refer the latest PX4 Optical Flow sensor setup in the link below:

https://docs.px4.io/main/en/sensor/optical_flow.htmlarrow-up-right

Ardupilot Configuration

Connect Agam Florange to CAN port. Set the following parameters:

To use the onboard lidar:

  • EK3_SRC_OPTIONS = 0

  • EK3_FLOW_DELAY

  • EK3_SRC1_POSXY = 0 (use optical flow)

  • EK3_SRC1_VELXY = 5

  • EK3_SRC1_POSZ = 1

  • EK3_SRC1_VELZ = 0

  • EK3_SRC1_YAW = 1

  • 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. The below parameters can be set to account for the offset of the Agam FloRange Sensor from the vehicle center of gravity.

    • FLOW_POS_X, FLOW_POS_Y, FLOW_POS_Z

UART Version Setup

Last updated