These diagrams are for reference only and apply only to ArduPilot firmware. Make all connections according to the actual hardware configuration.
Main controller board:
Power board: