Go to Post If you have not had a positive experience in FIRST, please don't bring those that have down. - Jeff K. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2008, 00:12
Culvan Van Li's Avatar
Culvan Van Li Culvan Van Li is offline
Jack-Of-All-Trades
AKA: Andy
FRC #1939 (Kuh-Nig-Its)
Team Role: Engineer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Kansas City, MO
Posts: 36
Culvan Van Li is on a distinguished road
Debugging Help

Our team ran out of time for testing the autonomous code this year. It seems to work great while the robot is on blocks but when it actually starts running around on the ground we can't tell why it is making the decisions that it is.

Anyhow it's clear that we will have to fine tune the code during practice matches. We need some way to gather data from the robot while it's in autonomous mode and driving around on the field. I believe we can use the dashboard port, but it looks like it's more complex than just using the printf commands we've been using through the program port. Furthermore, since we will have to stand back from the OI during auto mode we may have trouble seeing what it is doing. I'd like it to log the results so we can review them between rounds. My preference would be to use a terminal emulator with a capture buffer to keep all the information.

The short version is we need help with the following:
1) How do we code it so particular variable information comes out of the dashboard port.
2) Where is the OI/RC jumper in the manual. I won't have access to the OI again until the regional so I'd like to make sure I know where it is. The diagram in the OI reference guide doesn't show the jumper. The picture on IFI's website seems to show something between the Dashboard port and port 1. is that the jumper?
3) Apart from custom written software, is there a way to log the output of the dashboard port?

Andy
  #2   Spotlight this post!  
Unread 19-02-2008, 01:18
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Debugging Help

1. There are a couple of "User Bytes" that you can program in. Several are used in the default code I think. There is a space for them in the dashboard viewer. Also on the bottom of the user_routines.h file is "user_mode_byte" which you can view by pressing mode which is under the LCD display on your IO.

2. yeah, the Jumper is right between dashboard and port 1, you cant miss it

3. I have been looking for a solution to this as well, but to no avail, sorry.

Maybe you could store some stuff to the EEPROM if there are a few vital things you need that you cant get any other way. The dashboard way would be much easier though.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #3   Spotlight this post!  
Unread 20-02-2008, 22:18
Loubear's Avatar
Loubear Loubear is offline
Registered User
AKA: YLou
FRC #0075 (RoboRaiders)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: NJ
Posts: 33
Loubear will become famous soon enoughLoubear will become famous soon enough
Re: Debugging Help

For now use the user_bytes, but when you have time, look up on the ttl board. Basically, you can write some telemetry code, hook up a structure, and send data packets out a serial cable. From there, you can use labview to capture and output the data in readable form.
Closed Thread


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
Pascal-like language debugging? indieFan Programming 3 17-05-2007 02:43
printf/debugging yogibear Programming 1 16-11-2006 20:08
Wireless programming and debugging link heydowns Programming 2 23-01-2006 21:39
Making Debugging Easier dm0ney Programming 18 10-04-2005 23:32
Dynamic Debugging Tool MarkVH Programming 5 04-02-2005 18:09


All times are GMT -5. The time now is 17:51.

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