|
Re: Equation for converting potentiometer voltage into angle?
Quote:
Originally Posted by MamaSpoldi
positionDeg = (analogPot->GetAverageVoltage() - INHERENT_ZERO) * VOLTAGE_TO_DEGREES;
|
Let:
y = positionDeg
m = VOLTAGE_TO_DEGREES
x = analogPot->GetAverageVoltage()
b = -VOLTAGE_TO_DEGREES*INHERENT_ZERO
then:
y = mx + b
|