/************ global sensor init */
+#define BACKGROUND_ADC 0
#ifndef HOST_VERSION
/* called every 10 ms, see init below */
static void do_sensors(void *dummy)
{
- do_adc(NULL);
+ if (BACKGROUND_ADC)
+ do_adc(NULL);
do_boolean_sensors(NULL);
sensor_obstacle_update();
}
return;
#else
adc_init();
- adc_register_event(adc_event);
+ if (BACKGROUND_ADC)
+ adc_register_event(adc_event);
/* CS EVENT */
scheduler_add_periodical_event_priority(do_sensors, NULL,
10000L / SCHEDULER_UNIT,