@zugif could be that the autopilot takes the
/dev/mem pf the Rpi and does not allow any further operations. So, I suggest you
This way you could know if the autopilot is responsible. You have some nice examples here about how to cotrol GPIOs. Notice that is not the same using Rpi pin annotation and BCM GPIO naming:
Normally, I use BCM GPIO annotation.