Connecting automatic landing gear with Pixhawk 4 & PM07

I’m using this frame LJI 500-X4 Frame S500 Frame with automatic landing gear, look at the following image :

There are 3 groups of wires in 3 different color in the left picture as the following:

  1. Red circle : (+ and GND) => DC2S-6S, should I connect them to the PM07 Like any motor’s ESC or it has to be connected to a 5-volt output ? see the following picture :

  1. Orange circle : Signal RC IN, I have to connect it to the FMU PMW IN, isn’t it ?

  2. Green circle : They are two inputs for each leg of the automatic landing gear, but without any clear description for the order of the red and black wires.

Hope to find any help