Skip to content

Commit

Permalink
removed IR_ADC_READ_ONLY flag, was only used in infrared_adc anyway a…
Browse files Browse the repository at this point in the history
…nd should not be needed anymore, as the estimator is not updated in UpdateIRValue anymore
  • Loading branch information
flixr committed Aug 23, 2011
1 parent 449942e commit 29fe07c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion conf/modules/infrared_adc.xml
@@ -1,5 +1,4 @@
<!DOCTYPE module SYSTEM "module.dtd">
<!-- @define IR_ADC_READ_ONLY for read only module -->

<module name="ir_adc" dir="sensors">
<header>
Expand Down
3 changes: 0 additions & 3 deletions sw/airborne/subsystems/sensors/infrared_adc.c
Expand Up @@ -95,10 +95,7 @@ void infrared_adc_update(void) {
#ifdef ADC_CHANNEL_IR_TOP
ir_adc.ir3 = (int32_t)(buf_ir3.sum/buf_ir3.av_nb_sample) - IR_ADC_TOP_NEUTRAL;
#endif // IR_TOP
#ifndef IR_ADC_READ_ONLY
UpdateIRValue(ir_adc);
#endif
#endif /* !SITL && !HITL */
/** #else ir_roll set by simulator in sim_ir.c */
}

0 comments on commit 29fe07c

Please sign in to comment.