removed IR_ADC_READ_ONLY flag, was only used in infrared_adc anyway and should not be needed anymore, as the estimator is not updated in UpdateIRValue anymore

This commit is contained in:
Felix Ruess
2011-08-23 22:12:01 +02:00
parent 449942e361
commit 29fe07c8a3
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -1,5 +1,4 @@
<!DOCTYPE module SYSTEM "module.dtd"> <!DOCTYPE module SYSTEM "module.dtd">
<!-- @define IR_ADC_READ_ONLY for read only module -->
<module name="ir_adc" dir="sensors"> <module name="ir_adc" dir="sensors">
<header> <header>
@@ -95,10 +95,7 @@ void infrared_adc_update(void) {
#ifdef ADC_CHANNEL_IR_TOP #ifdef ADC_CHANNEL_IR_TOP
ir_adc.ir3 = (int32_t)(buf_ir3.sum/buf_ir3.av_nb_sample) - IR_ADC_TOP_NEUTRAL; ir_adc.ir3 = (int32_t)(buf_ir3.sum/buf_ir3.av_nb_sample) - IR_ADC_TOP_NEUTRAL;
#endif // IR_TOP #endif // IR_TOP
#ifndef IR_ADC_READ_ONLY
UpdateIRValue(ir_adc); UpdateIRValue(ir_adc);
#endif
#endif /* !SITL && !HITL */ #endif /* !SITL && !HITL */
/** #else ir_roll set by simulator in sim_ir.c */
} }