I'm trying to control the PWM outputs of my Erlecopter (with EB3) using mavros commands. I'm able to change the rc inputs using
rostopic pub -r 10 /mavros/rc/override mavros_msgs/OverrideRCIn '[1500, 1500, 1750, 1500, 1500, 1500, 1500, 1999]' (I'm using APM 2.0 to verify this)
but the outputs according to mavros/rc/out don't change. I try to arm the erlecopter in the STABILIZE mode using rosrun mavros mavsafety arm and the erlecopter arms for a few seconds and then it disarms and in neither state the outputs change. What do I have to do to transfer these rc input values to the output? (I already change SYSID_MYGCS to 1 in the APM).
And later on I would like to have a python script running on it changing the PWM outputs, but I don't know how, any help? I'm really new on ROS and LINUX