Browse Source

fix ac2 hil build

master
Michael Oborne 14 years ago
parent
commit
fab2121c6d
  1. 6
      ArduCopter/system.pde

6
ArduCopter/system.pde

@ -169,14 +169,14 @@ static void init_ardupilot()
heli_init_swash(); // heli initialisation heli_init_swash(); // heli initialisation
#endif #endif
// begin filtering the ADC Gyros
adc.filter_result = true;
init_rc_in(); // sets up rc channels from radio init_rc_in(); // sets up rc channels from radio
init_rc_out(); // sets up the timer libs init_rc_out(); // sets up the timer libs
init_camera(); init_camera();
#if HIL_MODE != HIL_MODE_ATTITUDE #if HIL_MODE != HIL_MODE_ATTITUDE
// begin filtering the ADC Gyros
adc.filter_result = true;
adc.Init(); // APM ADC library initialization adc.Init(); // APM ADC library initialization
barometer.Init(); // APM Abs Pressure sensor initialization barometer.Init(); // APM Abs Pressure sensor initialization
#endif #endif

Loading…
Cancel
Save