mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
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:
@@ -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 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user