fix ac2 hil build

This commit is contained in:
Michael Oborne 2011-10-04 18:55:10 +08:00
parent 15d0a4af2f
commit fab2121c6d

View File

@ -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