Copter: GCS_Mavlink gets gyro direct from imu

This commit is contained in:
Randy Mackay 2014-02-03 16:25:53 +09:00 committed by Andrew Tridgell
parent f46ff2b44e
commit 3d926a6943
1 changed files with 4 additions and 3 deletions

View File

@ -115,15 +115,16 @@ static NOINLINE void send_heartbeat(mavlink_channel_t chan)
static NOINLINE void send_attitude(mavlink_channel_t chan)
{
const Vector3f &gyro = ins.get_gyro();
mavlink_msg_attitude_send(
chan,
millis(),
ahrs.roll,
ahrs.pitch,
ahrs.yaw,
omega.x,
omega.y,
omega.z);
gyro.x,
gyro.y,
gyro.z);
}
#if AC_FENCE == ENABLED