From fab2121c6d153b6d928c1b1a1fe8acfc30901213 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Tue, 4 Oct 2011 18:55:10 +0800 Subject: [PATCH] fix ac2 hil build --- ArduCopter/system.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index fb613a1110..848713b396 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -169,14 +169,14 @@ static void init_ardupilot() heli_init_swash(); // heli initialisation #endif - // begin filtering the ADC Gyros - adc.filter_result = true; - init_rc_in(); // sets up rc channels from radio init_rc_out(); // sets up the timer libs init_camera(); #if HIL_MODE != HIL_MODE_ATTITUDE + // begin filtering the ADC Gyros + adc.filter_result = true; + adc.Init(); // APM ADC library initialization barometer.Init(); // APM Abs Pressure sensor initialization #endif