|
|
|
@ -187,13 +187,18 @@ static void init_ardupilot()
@@ -187,13 +187,18 @@ static void init_ardupilot()
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE |
|
|
|
|
barometer.Init(1, true); |
|
|
|
|
#else |
|
|
|
|
barometer.Init(1, false); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// Do GPS init |
|
|
|
|
g_gps = &g_gps_driver; |
|
|
|
|