Go to Post It is great to see your friends and other teams succeed. - Bob Steele [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2010, 20:21
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
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
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2010, 06:28
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find a Gyro and Accelerometer Sensor Board for 2010 FRC? xSpongeX Sensors 4 18-01-2010 06:17
Sources for 2010 WPILib? Mike Mahar C/C++ 6 11-01-2010 11:02
broken gyro captainking Electrical 0 02-02-2008 09:16
WPILib Questions Kruuzr Programming 1 22-01-2007 11:46
Broken promises or BROKEN ROBOTS! archiver 1999 9 23-06-2002 22:18


All times are GMT -5. The time now is 02:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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