I have an optical flow sensor that I would like to incorporate onto the ArduRover software. The optical flow sensor is a PMW3901 based break out board that uses SPI from Pimoroni PMW3901 Optical Flow Sensor Breakout (pimoroni.com)
As the Ardupilot code already has a library for the Pixart breakout board which uses SPI, I’ve went ahead and connect the OF sensor directly onto the ardupilot via SPI but I am not receiving any output.
In Adding OF sensor support to Rover it seems that Rover nows support the use of optical flow sensor, but in the Mission Planner I am unable to tick the Optical Flow check box (enable it) under the optional hardware tab. I have set the ‘FLOW_TYPE’ parameter to ‘2’ but the optical flow sensor is still 0. Can anyone please help?
Hi @stephendade I am using a Matek H743 - Wing V3 Flight Controller.
I’d assumed that since the libraries are available for Rover, the support for PMW3901 would be included. The Pixart breakout board also uses the PMW3901 chip. Is there a way to enable the support for PMW3901? What other options are there available?
No optical flow support is included in any stable Rover firmware. Run a 4.4 beta release to get basic support. As for enabling that specific chipset on SPI…I’ll leave that to someone more knowledgeable.
Hi @stephendade , I have done exactly that, but when I go back to the ‘Optional Hardware’ tab the Optical Flow Sensor is still not enabled (no tick).
After uploading the firmware to the 4.4 beta version, the Flow_Type parameter has no selection options i.e. it did not list out the value and it’s corresponding optical flow board. The description tab is also empty. (But I’ve still set it to 2 anyways as it corresponds to Pixart)
Am I doing something wrong here? Is there anything else that needs to be configured after I update the board parameter?
@stephendade I have successfully configured the Optical Flow Sensor. The checkbox will never be ‘ticked’ as I think there may be a bug with the GUI.
What I did was set the ‘Flot_Type’ = 2, clicking the ‘Enable Optical Flow’, and unplug and reconnect the flight controller to the mission planner. That’s how I got it to work.
Mission Planner probably assumes that optical flow is a Copter only feature. You have full access to all parameters that would ordinarily exist on the optical flow tab within the full parameter list, so there’s nothing stopping you from using the feature on your autopilot. It’s just an annoyance within the UI.
You could start a GitHub issue to remedy this for Rover in Mission Planner.