I’ve been trying to recreate Brian Douglas’ rudimentary control algorithm for a Zumo Robot with a L3G gyro sensor, but I’ve been running into problems with the gyro-- it seems that it’s registering an angular input about the z axis of the robot, even when it’s completely still. When I ran his code (which can be found at 10:25 of this YouTube video https://www.youtube.com/watch?v=LfydfvHyikM), the Zumo would spin its left tread (wrt to a top-down view of the robot pointing forward) at a greater rate, which seemed wack.
I investigated further by running a code that’s supposed to show a graphical input for each axis of the sensor, and when I ran that, it seemed that the sensor registered an input about the z-axis. Here’s the link to that set of code (https://gist.github.com/drewtm/9081341), as well as a screenshot of my serial monitor while I was running the test.
Does this seem fishy, and is there any way I can fix the gyro? I’m new to all of this coding business. Thanks!