Gyro broken on WPILib 2010?

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::getSystemIndex() - 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	

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