Ask Your Question
0

Mavros not arming quadcopter?

asked 2014-10-08 10:01:31 -0500

Eric Schneider gravatar image

Hi,

I've been trying to use mavros ( http://wiki.ros.org/mavros ) to fly a 3DR Iris quadcopter that has a Pixhawk on it, but we're having trouble arming the system.

Run through of the scenario:

  1. We're inside, plug the battery in for the quadcopter, and the quad goes to flashing blue. This stands for "Autopilot ready but no GPS lock". We can arm the quadcopter with the RC controller at this point.
  2. We plug in the radio modem and run 'roslaunch mavros apm2_planner.launch'. At this point we are connected to the quadcopter. When we rostopic echo the /mavros/battery and /mavros/imu/raw_data topics (among others) we get good data. We can pull and push missions.
  3. We put the RC controller in AUTO mode
  4. We run 'rosservice call /mavros/cmd/arming true' in a new terminal, it returns

    success: false

    result: 3

Does anyone have any ideas? Do we need to be outside with GPS fix? Are there any flags that need to be satisfied in the code before it will allow arming?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-08 10:08:33 -0500

vooon gravatar image

Result codes defined in this enum: https://pixhawk.ethz.ch/mavlink/#ENUM...

But last time i was seen APM code related to cmd 400 it may return 3 in many ways (it's disappointing me).

Also this topic more related to FCU Firmware rather than mavros, please ask at drone-discuss.

edit flag offensive delete link more

Comments

Others can see the related drone-discuss question here: https://groups.google.com/forum/#!sea...

Eric Schneider gravatar imageEric Schneider ( 2014-10-12 16:00:11 -0500 )edit

@vooon@Eric Schneider I Have the same problem (just instead of 3 i have result: 4) and I went through all the drone-discuss in the group and I don't get which answer worked for this case?

rayane gravatar imagerayane ( 2017-07-13 13:14:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-10-08 10:01:31 -0500

Seen: 1,379 times

Last updated: Oct 08 '14