Hello, I’m working on an autonomous copter and I would like to use OpenMV camera for optical flow. I’m using Emil’s Navio2 board and I would like to know if it woks with this kind of camera. In particular, I would like to know if I can manage the outputs of optical flow in ArduPilot. Is there anyone who can advise me? Thanks!
Hello, that works, you need to set OpticalFlow as a MavLink Message
As usual, WIKI is your friend
https://ardupilot.org/copter/docs/common-openmv-optflow.html
Hello, thank you for your answer. I’m having trouble with my OpenMv camera for optical flow. I’ve connected it to the UART of navio2. I’m receiving a “Bad OptFlow Health” message in the HUD of Mission Planner and not receiving any data on opt_m_x or y. I’ve made all the setup needed as described in the link but nothing… continue Bad OptFlow Health!! Has anyone with my problem solved?
You have to start the ardupilot executable with the a parameter to map the external uart:
serial0 = -A (always console)
serial1 = -C (normally telem1)
serial2 = -D (normally telem2)
serial3 = -B (normally first gps)
serial4 = -E (normally second gps)
serial5 = -F
You could use -C /dev/ttyAMA0 i.e. as a start parameter to use the Navio2 UART port. You then have to set the correct baudrate in the full parameter list.
Or to save yourself the hassle with an unreliable and obsolete flightcontroller like the Navio2, try to buy a H743 based flightcontroller.
Hi Sebastian, with “ArduPilot executable” do you mean /etc/default/arducopter? If so, I’ve already set TELEM2=“-D /dev/ttyAMA0”. And in the full parameter list SERAIL2_BAUD=115 and SERAIL2_PROTOCOL=1.
Do you have another device to check if the uart port actually gets data from ardupilot? An FDTI adapter
or telemetry radio? Did you try SERIAL_PROTOCOL=2, just to be sure? And you do not have another parameter configured that uses the UART too?
No, I haven’t any device to check if the port port gets data, but I’ve verified that it is enabled from the configs of rpi. I haven’t any other parameter that uses the part, just the openmv camera.