Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Gyro broken on WPILib 2010? (http://www.chiefdelphi.com/forums/showthread.php?t=80887)

Shinigami2057 22-01-2010 20:21

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:
Code:

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


jhersh 23-01-2010 06:28

Re: Gyro broken on WPILib 2010?
 
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


All times are GMT -5. The time now is 12:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi