Go to Post One career isn't really more prestigious than another; not in and of itself. More than anything it depends on what you do with it. - Matt Leese [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 22-01-2008, 20:45
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Exclamation No Feedback via Programming Port

Hey guys,

I'm trying to use kevin's 3.0 code. I am using the proper version of MPLAB (8) and C18. The code compiles just fine. When I use ifi loader to download the code, though, I get zero feedback from my printf calls. They are in the right place btw. When I hit the reset button on the oi or rc I get a message like >ifi and an initialized... message. This was what one normally gets with no printf statements. I then tried a HEX file from 2007's season compiled with 2.4 and IFIs default code. This time I got plenty of feedback. My only question is how do I resolve this issue with kevin's code and the latest compiler (3.0)?
  #2   Spotlight this post!  
Unread 22-01-2008, 21:09
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: No Feedback via Programming Port

Hmm, can you upload the file so the CD task force can take a look?

This is probably obvious but make sure the serial cable remains plugged in...

In the meantime, try copying and pasting the IFI warm-up printf call into Teleop() and commenting out all others.

Is it ONLY your printfs that don't work? That is, your robot still does the hokey pokey and everything, it just isn't showing serial feedback?

P.S. I'm in Tacoma! See you at PNW? Tacoma for sure though!
__________________
What place are we at? ... TODAI!
  #3   Spotlight this post!  
Unread 22-01-2008, 21:29
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: No Feedback via Programming Port

Quote:
Originally Posted by manderson5192 View Post
Hey guys,

I'm trying to use kevin's 3.0 code. I am using the proper version of MPLAB (8) and C18. The code compiles just fine. When I use ifi loader to download the code, though, I get zero feedback from my printf calls. They are in the right place btw. When I hit the reset button on the oi or rc I get a message like >ifi and an initialized... message. This was what one normally gets with no printf statements. I then tried a HEX file from 2007's season compiled with 2.4 and IFIs default code. This time I got plenty of feedback. My only question is how do I resolve this issue with kevin's code and the latest compiler (3.0)?
If you're seeing the "IFI User Processor Initialized ..." message, everything should be functioning because it's generated by a printf() located at the bottom of the Initializtion() function. If you get stuck, send me your code and I'll have a look.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 24-01-2008, 21:07
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Re: No Feedback via Programming Port

Thanks for the help guys. We resolved the problem by including \r and \n at the end of our printfs. I guess the compiler prefers that we not be lazy and only include \n.
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
User input via serial port AJBelayer FIRST Tech Challenge 2 14-12-2005 18:54
Programming via Edubot Joshua May Programming 11 29-04-2004 19:18
Communications via the Programming Port Larry Barello Technical Discussion 9 10-06-2003 23:33
Programming Port I/O MikeDubreuil Programming 4 10-02-2003 17:07
Programming Port Steven Carmain Programming 18 23-01-2003 21:36


All times are GMT -5. The time now is 18:41.

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