Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calibration: Call stopAcquisition after every getSamplesRaw
Previously stopAcquisition was only after calibrating ADC and DAC alltogether. This causes the calibration to use continous buffer values between calibration steps. ADC read does about 22 reads (one for offset 20 for fine tuning the offset and another one for gain), while DAC calibration makes use of the ADC to calibrate offset and gain with one read each. The buffers were continous to some measure due to the kernel buffer configuration. By stopping the acquistion - we destroy the buffers and force a reacquistion. This should give out better calibration values. Signed-off-by: Adrian Suciu <adrian.suciu@analog.com>
- Loading branch information