Servo function to battery connection

Hello,

I use a PicoSwitch RC relay connected to Aux2 and I feed the rail with a 5v Bec.
I use the Servo function and I control the RC relay as a camera shutter.

The system works, but when connecting the quad battery, the relay switches from position 0 to position 1 for one second, then returns to state 0.

This is a montage that I use regularly and this is the first time I have had this problem.
I lowered the corresponding RC_TRIMs to try, but it didn’t change anything.
Having the radio control on or off does not change anything.
When the PicoSwitch relay is disconnected, it is in state 0.

My configuration: Cube Black with firmware copter 4.0.7 and Herelink.

Do you have any idea to help me?

Unfortunately it’s a quirk of the cube black. See: https://github.com/ArduPilot/ardupilot/issues/1239

Hello,

Thank you for your reply.
It’s strange, because I have used this setup several times before and this is the first time I have this defect.

Have a good day