You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there's no load, the current value is not null due to the noise. As a consequence when we compute the square in the function get_measure the amount error continue growing.
▸ /* !TODO: Remove dc bias, find better solution */
▸ if(bias_rem)
▸ ▸ val -= BIAS_OFFSET;
#if VERBOSE >= 4
▸ /* WARNING: printf is much time expensive */
▸ printf("adc_measure: val=%d\n", val);
#endif
▸ return val;
}