Controlling Copter via mavlink

Hi everyone!

I’m involved in a project in which I would need to control the throttle, roll, pitch and yaw of the copter depending some sensor samples. I’ve tried to generate RC signals with a microcontroller and plug them into APM Inputs, but I’m getting bouncing (not reliable signals). My question is: Is it possible to do it via some mavlink command?

Thank you for your answers!

Regards

Hello,

Your version may be a little old …
On recent one you can use http://mavlink.org/messages/common#SET_ATTITUDE_TARGET https://github.com/ArduPilot/ardupilot/blob/master/ArduCopter/GCS_Mavlink.cpp#L1334