i need a way to control the mx2125 accelerometer so temp does not effect it i am using it in the vertical position.
dividing y by x as the reselt. it works in positive but negitive numbers
Post Edited By Moderator (Chris Savage (Parallax)) : 3/1/2006 4:48:36 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·IF (xVal.BIT15 ^ yVal.BIT15) THEN
·· result = 0 - (ABS xVal / ABS yVal)
·ELSE
·· result = ABS xVal / ABS yVal
·ENDIF
·DEBUG SDEC result
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax