mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
ADC: update for new ap_proceduce prototype
This commit is contained in:
parent
5b75458502
commit
f587a01165
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user