Camera problem

I am working on underwater drone project. I use pixhawk and raspberry pi 3b and usb camera. When i download ardusub software in micro-sd card qgc doesnt show its video from camera. But when i connect camera to computer qgc see this camera and show its camera. Also when i download raspian os in micro-sd card, i open I2C from preferences and i download “cheese” command, i run cheese and i can see camera. Only problem when download ardusub software and connect usb camera to pi 3b. Please help for fix