added compass example
compass example rework
Merge branch 'master' of git:zumo-shield
Made function findHeading(). It now finds the correct heading by assuming a z-vector that points straight up instead of relying on the acceleration vector that uses the downward force of gravity to determine North. By doing this we assume we are on a perfectly level surface.
changed heading function
Changed findHeading to heading. Also added another parameter to heading. The prototype is now int heading(LSM303::vector from, LSM303::vector avg);
Changed avg to v. Fixed some comments in the code.
compass example: further cleanup
compass example: clarified description in comments
compass example: more consistent formatting & clearer comments
Reduced left turn and right turn functions into 7 lines of code.
rewrote heading to motor speed conversion to be more similar to original formula before simplification
compass example: removed extraneous defines
compass example: moved turn base speed to a define
compass example: removed leftover comment
updated readme