Log in

View Full Version : Gyro broken on WPILib 2010?


Shinigami2057
22-01-2010, 20:21
Trying to grab the angle from the 2009 KoP gyroscope causes a fatal exception. I'm using the most recent WPILib release (1/09/2010) with the latest cRIO firmware (v19).

Do any of the WPILib guys have any idea what the issue is?

Stack trace in Wind River debugger:

FRC_RobotTask : 0x1d42590 (Stopped)
nFPGA::nAD9A5591CC64E4DF756D77D1B57A549E::tAI::get SystemIndex() - tAI.h:22
AnalogModule::GetLSBWeight() - AnalogModule.cpp:401
AnalogChannel::GetLSBWeight() - AnalogChannel.cpp:135
Gyro::GetAngle() - Gyro.cpp:153
Rambot::TeleopPeriodic() - Rambot.cpp:243
IterativeRobot::StartCompetition() - IterativeRobot.cpp:139
RobotBase::robotTask() - RobotBase.cpp:130
vxTaskEntry() - 0x001a020c

jhersh
23-01-2010, 06:28
Interesting. Can you please post or PM your code so I can attempt to debug the issue and fix the problem. I'm not seeing anything at first glance that would cause this, but perhaps you are using the class differently that I am. I'm guessing that "this" is NULL or something when calling getSystemIndex(). The m_module pointer should be initialized in the AnalogModule constructor. Anyway... a look at your code should clear things up.

Thanks,
-Joe