View Single Post
  #4   Spotlight this post!  
Unread 14-02-2008, 09:15
bdleppke bdleppke is offline
Registered User
FRC #1731
 
Join Date: Feb 2008
Location: Virginia
Posts: 3
bdleppke is an unknown quantity at this point
Re: gyro not working

Quote:
Originally Posted by bdleppke View Post
We are having a similar problem. We are using WPILIB with Eclipse. We are also using the KOP gyro's and gear tooth sensors. We tested them all individually with WPILIB and they worked great. When we started integrating the different features together we started getting very strange and intermittent results. For example, after reset, we would get just a single value that would never change as we rotated the yaw rate sensor. By just moving two lines of code down a couple lines (code that registered interrupts for the IR sensor was moved from the end of Initialize() to the start of Autonomous()), the gyro started working again. We started back from scratch and started adding functionality. Now the gear tooth sensors don't work at all. That code related to the gear tooth sensors is identical to what it used to be when it worked. It made us think of the memory corruption back in 2006 with the "8.2/8.3 battery voltage bug". Is there anything we need to do for that bug when using WPILib or do you have any other suggestions.
We fixed the problem that was creating the erratic behavior. We had a short in two of our PWM cables (we made them ourselves). After removing those faulty cables, the code worked fine.