ACM: removed the ADC filtering code

This commit is contained in:
Andrew Tridgell 2012-03-05 11:28:04 +11:00
parent 2b6fae6e16
commit a874f920d5
2 changed files with 0 additions and 8 deletions

View File

@ -72,13 +72,6 @@ static void read_trim_switch()
}
}
#elif CH7_OPTION == CH7_ADC_FILTER
if (g.rc_7.radio_in > CH_7_PWM_TRIGGER){
adc.filter_result = true;
}else{
adc.filter_result = false;
}
#elif CH7_OPTION == CH7_AUTO_TRIM
if (g.rc_7.radio_in > CH_7_PWM_TRIGGER){
auto_level_counter = 10;

View File

@ -218,7 +218,6 @@ static void init_ardupilot()
#if HIL_MODE != HIL_MODE_ATTITUDE
#if CONFIG_ADC == ENABLED
// begin filtering the ADC Gyros
adc.filter_result = true;
adc.Init(&timer_scheduler); // APM ADC library initialization
#endif // CONFIG_ADC