trackiing head movement
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?
Anyone have any Ideas?
Comments
Post Edited (Robofreak) : 11/3/2007 2:33:50 PM GMT
http://forums.parallax.com/showthread.php?p=675357
humanoido has written a BUNCH of compass programs based on the Penguin (bit faster chip than a BS2, but same language.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
slashsplat
/* Ira Chandler */
BotConnect.com