Ardumower / Sunray

Ardumower Sunray
71 stars 54 forks source link

Accurate motor current draw #143

Open ShadedSelf opened 11 months ago

ShadedSelf commented 11 months ago

The brushless board adc offset is 1.675v on average. Since the only way to get accurate readings is averaging over time, cutting negative values skews readings, this PR removes the negative cutoff so values average correctly.

I couldnt find any reason why negative numbers would be a problem with the current code.