ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Mavros not arming quadcopter?

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

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 -0600

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 image Eric Schneider  ( 2014-10-12 16:00:11 -0600 )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 image rayane  ( 2017-07-13 13:14:07 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 1,963 times

Last updated: Oct 08 '14