I have built a drone with raspberry pi + pixhawk 4 connected to the power management unit (I/O-PWM port and power 1 port) which is connected to the battery. The raspberry pi and the gps and the pixhawk 4 seem to get power and work fine only when it is connected to the computer via USB.
Is anyone having a similar issue or know a potential solution?