|
Re: Gyro not sensing angular change
Try probing the +5 to see if you have power to the gyro. Then probe SIG with a multimeter when still. It should be somewhere reasonably close to 2.5 volts (anything between 2 and 3 is normal, anything above 1 means it at least has power) then spin the robot, so you can see the multimeter, at a fairly constant speed and see if you have any change. You could also use the cRio analog input as a multimeter, and graph the analog channel output on the front panel. It should be at the centerpoint when not moving then go up or down when moving. Try going as fast as you can, and see if you can see a difference. Also, if you click a wire when the code is running, you can probe the wire to see the value, helpful when debugging problems like this.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|