Hello,
I’m currently working on doing image processing on my pixhawk/pi drone, but everytime python would request the camera through openCV, the drone’s sensors would go erratic and refuse to fly normally. I’m using dronekit-python to connect to the drone. There are two videos attached if it helps clarify.
I’m not sure what is causing this, is it a voltage issue? I know the raspberry pi draws a considerable amount of power to maintan 3 fps, but I don’t see why the power module cant deliver a stable voltage to the pixhawk.
Heres a tlog from the day before with more data (same gps glitch, compass failures). The logs of the video weren’t recorded but started 2 minutes later at 9:59, so I think theres only one error in that log
I’m powering the Pi with the serial 1 port from the pixhawk connected to the GPIO pins, would I need an actual power bank in the air along with the battery, or something like a UBEC?
The camera is connected via the camera port on the Pi board.
I think I temporarily fixed the issue by positioning the GPS further away from the electric components. Most of the EKF variance worsened as I moved the GPS closer to the pixhawk, and didn’t really change when I placed it close to the camera. Thanks for all the help everyone
I’m using the bn-880 gps module on a Pixhawk 2.4.8
thanks yeah that probably was the problem as my GPS mount broke so I attached it to the pixhawk’s surface thinking there wouldn’t be a problem. Thankfully there wasn’t an issue in loiter mode or the drone would have crashed many times on me.
I’ll try running the script sometime soon again and see if it raises any more issues, but for now I think its fixed, thanks for all your help