Hex HereFlow Optical Flow Sensor¶
The HereFlow optical flow sensor is a lightweight optical flow sensor including a short range lidar which uses the CAN protocol to communicate with the autopilot. This can be used to improve horizontal position control especially in GPS denied environments.
Support for this sensor is available in Copter-4.0.0 (and higher)
The lidar included with the HereFlow is very short range especially outdoors. We strongly recommend using a longer range lidar instead.
Connection to Autopilot¶
- The flow sensor should be mounted on the underside of the copter with the camera lens pointing downwards. The side of the sensor with the lens should be towards the front of the vehicle.
- Connect the sensor to the autopilots’ CAN port (if using a Cube note that pre-Apr 2019 boards have CAN1 and CAN2 swapped)
- Set FLOW_TYPE = 6 (UAVCAN)
- Set CAN_P1_DRIVER = 1 to enable UAVCAN
- Set CAN_D1_PROTOCOL = 1 (UAVCAN)
To use the onboard lidar (not recommended):