ADC: update for new ap_proceduce prototype

This commit is contained in:
Andrew Tridgell 2011-12-21 23:22:53 +11:00
parent 5b75458502
commit f587a01165
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ static inline unsigned char ADC_SPI_transfer(unsigned char data)
}
void AP_ADC_ADS7844::read(void)
void AP_ADC_ADS7844::read(uint32_t tnow)
{
uint8_t ch;
@ -112,7 +112,7 @@ void AP_ADC_ADS7844::read(void)
// reader below could get a division by zero
_sum[ch] = 0;
_count[ch] = 1;
last_ch6_micros = micros();
last_ch6_micros = tnow;
}
_sum[ch] += (v >> 3);
}

View File

@ -36,7 +36,7 @@ class AP_ADC_ADS7844 : public AP_ADC
uint16_t _prev_gyro[3];
uint16_t _prev_accel[3];
uint8_t _filter_index_accel;
static void read( void );
static void read(uint32_t);
};