I'm having trouble with pixhawk and hobbywing x-rotor esc

i’m building a quadcopter.
Here is my parts:
Hobbywing X-Rotor 40A 2-6S ESC (no-bec, opto) - XRotor 40A ESC COB - HOBBYWING North America
4S 4200Mah Battery
Velox V2306 4S 2400kv motors
Pixhawk 2.4.8
Flysky FS-IA10B Receiver & FS-I6X Controller

My problem is, ESC’s. I’m wiring the ESC’s like in this image:


(i got this image from another thread - Need help for connect Hobbywing esc opto to pixhawk )

And I’m runnig ESC Calibration from Mission Planner and it didnt works.
I tried everything I could, some methods I tried from videos I found on Youtube:

Finally, I put the controller in PWM mode and plugged one of my esc directly into the 3rd channel of the receiver (my controller using 3rd channel for throttle) and I was able to start the motor .I also heard the calibration tunes but when I plugged it back into the pixhawk, it still didn’t work.
soo how can i fix this?

I believe you have the motor/servo connectors in upside down. The white signal wire should be at the bottom and the black ground wire should be at the top
image

Also check that you’ve updated to latest stable firmware and using “Pixhawk1” as the flight controller type.

reversing the wires fixed the problem, thanks very much