I have an optical flow kit. I connected it to the i2c expansion module of the pixhawk. I am following http://dev.px4.io/flow_lidar_setup.html link.
How do I confirm that pixhawk is receiving the optical flow data ? How to see the optical flow data or verify its functioning?
The easiest way to verify that your Pixhawk is able to communicate with the optical flow module is to connect the Pixhawk to QGC and open the analyze widget. If you see messages with the name optical flow in the list and the content of these messages reflect how you are moving the flow module, the Pixhawk is receiving the messages from the flow module.
That is how I do it as well. I can see the data in the analyze widget. Even see X and Y movement on the graph.