Hi there, I’m trying to make Optical flow work with on a 450 sized frame with pretty standard components.
The flight controller is one of the Chinese Pixhawk V2.4.8 clones, which flies great under full manual control. I’ve got the Px4flow board, but with a replacement MaxboticI2c Sonar (I read the default one on the board isn’t supported).
I’ve done the focus procedure for the Px4flow and I can values for opt_m_x and opt_m_y which seem to change with +/-0 values as I move the drone around. I also get realistic values from the sonar. Both Px4flow and the sonar are connected to the same I2C bus.
I’ve been through the forums and set a bunch of stuff including:
FLOW_ENABLE = 1
EK2_ALT_SOURCE = range finder
EK2_GPS_TYPE = No Gps (because there isn’t one / it needs to work indoors)
If I hover with the stick in the mid position in manual mode and then set the flight mode to AltHold then I can see it trying to hold altitude so I know my I2C bus is good and that sensor at least is working.
However I can only get Loiter mode to work when it’s attached to the computer with the USB lead, and actually connected to Mission planner via serial. When I go into Loiter mode I can hear one tone and there are no error messages displayed on the Flight Data screen. It needs tuning but it looks like it’s trying to hold position.
However as soon as I disconnect from Mission Planner (just by clicking disconnect) BUT even with the USB lead still plugged in, then I get two tones when I switch mode and it’s clearly in manual mode still.
I read the post below, that suggests it’s a power issue, but I have to stress it only works when the serial link is actually connected to MP. I’ve tried connecting USB power banks during boot (and during flight), but I can never make it go into Loiter mode unless the actual serial connection is there to MP.
…so it looks different to that(?)
I downloaded the logs, but the upload thing here says the file is too big - is there some way to view the log as text / anything I can try to see what the error is?
thanks!