PDA

View Full Version : Mecanum with Magnetometer


MAldridge
02-19-2012, 11:13 AM
I am struggling with this one. My task is essentially simple, I need to use a compass to assist in making sure the robot goes where I tell it to. The compass is the tilt compensated I^2C model from sparkfun, wired through opto-isolators to account for the voltage difference.

Essentially, I need to convert this to a signal that I can feed into the 'Gyro' input on the holonomic drive VI. I have it set up to where I poll it in another loop and put the heading into a global variable, but now I need to figure out what to do with it.


Any and all help is appreciated.