View Single Post
  #10   Spotlight this post!  
Unread 05-02-2013, 15:22
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Equation for converting potentiometer voltage into angle?

Quote:
Originally Posted by MamaSpoldi View Post
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