From 8e6fdb8981c5bd6c4574952fbfe2c3f9301dac35 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Apr 2012 12:30:16 +1000 Subject: [PATCH] APM: use OutputCh_current() in MAVLink servo logging this gives a more accurate picture of what is actually happening with the servos --- ArduPlane/GCS_Mavlink.pde | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index df31a18511..b9588506c4 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -418,14 +418,14 @@ static void NOINLINE send_radio_out(mavlink_channel_t chan) chan, micros(), 0, // port - g.channel_roll.radio_out, - g.channel_pitch.radio_out, - g.channel_throttle.radio_out, - g.channel_rudder.radio_out, - g.rc_5.radio_out, // XXX currently only 4 RC channels defined - g.rc_6.radio_out, - g.rc_7.radio_out, - g.rc_8.radio_out); + APM_RC.OutputCh_current(0), + APM_RC.OutputCh_current(1), + APM_RC.OutputCh_current(2), + APM_RC.OutputCh_current(3), + APM_RC.OutputCh_current(4), + APM_RC.OutputCh_current(5), + APM_RC.OutputCh_current(6), + APM_RC.OutputCh_current(7)); } static void NOINLINE send_vfr_hud(mavlink_channel_t chan)