Waiting for the vehicle to arm

Good days,

My purpose is that make arm pixhawk by using pymavlink library but I had a problem when ı worked the code into this link(Pymavlink · GitBook)

When I worked this code, I just took “waiting for the vehicle to arm” and then I do not take anymore. Please how can I fix this problem. If I used wrong code, could you write true code?

Hi @huseyinefe, welcome to the forum :slight_smile:

I’ve moved your question to its own post, because it was unrelated to the one you originally posted it in.

If your code is getting to that print statement then it’s connecting correctly to the flight controller, but that example works well for me so I’m not sure why it’s not working for you. Can you try using master.arducopter_arm() instead of the explicit command_long_send call, and maybe send two arm calls before doing master.motors_armed_wait()?

More generally, which versions of Pymavlink and ArduSub are you using?