Quantcast
Viewing all articles
Browse latest Browse all 45786

Controlling camera servos via mavlink commands?

@larsks wrote:

I have a quadcopter running arducopter 3.4.1. I have a camera gimbal attached to ports AUX1 (tilt), AUX2 (mode), and AUX3 (pan), and APM configured like this (via qgroundcontrol):

Gimbal Tilt
Ouput channel: 9
Input channel: RC10

Gimbal Roll
Output channel: 10
Input channel: RC11

Gimbal Pan:
Output channel: 11
Input channel: RC12

This all works just fine using the pots on my transmitter (which are mapped to channels 10, 11, and 12), but I would like to be able to control the gimbal using mavlink commands set from mavproxy (1.5.7). I thought this seemed like the obvious solution for trying to control, for example, the gimbal tilt...

servo set 9 1500

...on the assumption that "servo 9" corresponds to "output channel 9". But that doesn't seem to have any effect. In fact, I've tried that without pretty much all servo channels without any impact. In all cases, I get the following response:

Got MAVLink msg: COMMAND_ACK {command : 183, result : 0}

I've also tried attacking this from the other side of things using the "rc" commands (like rc 10 1000), but these appear to have no effect whatsover (there is no COMMAND_ACK returned by the copter).

Is this a problem with my APM configuration? Or am I just not doing this the right way?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 45786

Trending Articles