ADC: on channel overflow we should not zero last_ch6_micros

this happens every 64 seconds because of unused channels on the
ADC. Zeroing this creates a bad delta_t value for the DCM code.
This commit is contained in:
Andrew Tridgell 2012-02-16 17:48:04 +11:00
parent f8ed9f0e8d
commit 3fbb5a2d6c
1 changed files with 0 additions and 1 deletions

View File

@ -116,7 +116,6 @@ void AP_ADC_ADS7844::read(uint32_t tnow)
// reader below could get a division by zero
_sum[ch] = 0;
_count[ch] = 1;
last_ch6_micros = tnow;
}
_sum[ch] += (v >> 3);
}