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