Go to Post Mentors need to be sure that the team is on track to have a working robot ready. Students can do almost everything, but they need help watching the calender. Even if your ideas turn out bad, if your robot is inspectable and running when you arrive at your first event, anything can happen. - AcesPease [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 24-03-2009, 21:49
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
debugger help

Now that the season is over, it is time to try Wind River again. The last time I tried, I got tossed an error by the debugger. Neither I nor the mentor there could figure it out as all we got was a disassembled listing of the code. There was no error message aside from terminating the control loop with a message saying error. We have it narrowed down to one of three places. It seemed to stop somewhere around my call to the constructor of an accelerometer. However, in teh debugger window, there were two classes listed. There was the DS class and the Compressor class (both near that call to the accelerometer class). They had the same two methods listed under them (can't remember the exact names and I can't get to our CRIO for a week). Neither could be run. If anyone has any idea what might be going on, or even if there is any way to get a C++ version of the code instead of assembly, please let me know. Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2009, 22:38
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,039
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: debugger help

I have found that generally when it does that, it means that there is a bad pointer somewhere.

Did you specify the slot of the accelerometer? If you specify the wrong one, or really if specify *something* wrong when creating it then you will get bad results, because the internal functions reference an object and if it never gets created... then invalid memory references happen. You might want to try launching a target console and see if there are error messages there, since the WPILib does not break into the debugger when asserts occur (which is incredibly annoying, actually).

You could also try running the code in my test harness (http://www.chiefdelphi.com/forums/sh...d.php?t=75811), though I don't think it supports accelerometers -- but many other problems (like NULL pointers and such) its pretty good at catching.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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
Source Code Debugger??? Phoenix Spud C/C++ 2 12-02-2009 22:54
Interactive Debugger/Monitor duane Programming 10 11-10-2006 23:26
MPLAB SIM debugger Questions Chris_Elston Programming 2 16-01-2005 11:28
c debugger stephenthe1 Programming 16 09-12-2004 14:49
openFIRST Now Includes Debugger Timothy D. Ginn FIRST-related Organizations 0 22-12-2003 12:15


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