Shop OBEX P1 Docs P2 Docs Learn Events
trackiing head movement — Parallax Forums

trackiing head movement

sierrabobsierrabob Posts: 1
edited 2007-11-05 15:05 in Robotics
I'm trying to figure out a way to track head movement(pan) useing an HM55B compass module. I have a basic 2 and it reads the degrees fine. I plan to go out to a servo motor. The problem I'm haveing is·trying to figure a way to keep track of my current head position and then move the correct amount to the new head position. The real problem is when I move past the the 360 degree position from a lessor degree ( say 4 degrees ) to a larger ( say 354 degrees ) or vice versa.
Anyone have any Ideas?

Comments

Sign In or Register to comment.