ACM: removed the ADC filtering code
This commit is contained in:
parent
2b6fae6e16
commit
a874f920d5
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user