-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Calibration can be improved by using some kind of polynomial.
As not all architectures support floating point, it might take the form of a series of fractions, like:
struct adc_polynomial {
unsigned long numerator;
unsigned long denominator;
};While calibrating the ADC, it might look like:
static struct adc_polynomial poly[3] = {
{ 64, 73 }, { 2442, 10000 }, { 32, 37 }
};
(void)adc_set_polynomial(&ADCx, poly, (size_t)3);Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers