Go to Post Sometimes people are just offended too easily. Sometimes offensively so. - GeeTwo [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 24-01-2006, 12:19
Max Brin Max Brin is offline
Registered User
FRC #1943 (Neat Team)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Israel
Posts: 52
Max Brin has a spectacular aura aboutMax Brin has a spectacular aura aboutMax Brin has a spectacular aura about
printf issue

Hey teams,
We have connected the controller via the 9pin cable to our pc.
We tried to put printf("test"); se we could test the communication between the controller and our pc. we downloaded (I guess successfully via the IFI loader) it to the controller and saw nothing on our terminal...

Can anyone help us?

Thanks & Good luck!
  #2   Spotlight this post!  
Unread 24-01-2006, 12:39
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: printf issue

Quote:
Originally Posted by Max Brin
We tried to put printf("test"); se we could test the communication between the controller and our pc. we downloaded (I guess successfully via the IFI loader) it to the controller and saw nothing on our terminal...
To solve this one I think we'll need more information. Can you tell us in what function and which file you put the printf?
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #3   Spotlight this post!  
Unread 24-01-2006, 12:41
Max Brin Max Brin is offline
Registered User
FRC #1943 (Neat Team)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Israel
Posts: 52
Max Brin has a spectacular aura aboutMax Brin has a spectacular aura aboutMax Brin has a spectacular aura about
Re: printf issue

Hey, thanks for replying so fast, our problem has been solved, by Connecting the controller directly via cable (not via radio) to the interface. .

Thanks and good luck!!!
  #4   Spotlight this post!  
Unread 24-01-2006, 12:47
steveg's Avatar
steveg steveg is offline
Livin' the Dream
AKA: Stephen Guerrera
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Boston, MA
Posts: 70
steveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to behold
Send a message via AIM to steveg
Re: printf issue

where in the code did you put the printf statement?

did you #include <stdio.h>?


EDIT:

Bah, too slow!

Last edited by steveg : 24-01-2006 at 12:51.
  #5   Spotlight this post!  
Unread 24-01-2006, 12:49
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: printf issue

Quote:
Originally Posted by Max Brin
Hey, thanks for replying so fast, our problem has been solved, by Connecting the controller directly via cable (not via radio) to the interface. .
That's great Max. An important tip to other teams experiencing similar problems. The printf function prints data out the program port on the robot controller. The radios are connected to the Robot Controller and the Operator Interface, allowing them to communicate.

It is possible to connect a personal computer to the Operator Interface through the Dashboard port. The possibilities with the Dashboard port are limited to the communication specification for the Dashboard port. More information on the Dashboard port, including a sample application can be found on the IFI website here.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #6   Spotlight this post!  
Unread 24-01-2006, 16:16
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: printf issue

Make sure you also include the line ending (printf("test\r\n")
  #7   Spotlight this post!  
Unread 24-01-2006, 17:03
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: printf issue

You just need the \r, not the \n (at least as of a few years ago).
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
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
Heroes of Engineering Comic: Dean is the December Issue Vince Dean Kamen's Inventions 5 01-12-2005 12:00
printf could not find definition Alex829 Programming 7 27-06-2005 10:04
Printf Oddity : Programming Challange DarkAlex Programming 7 21-03-2005 08:12
Default Code and printf WilsonDJ00 Programming 2 22-01-2005 16:39
Anyone with a replacement Printf? Larry Barello Programming 5 19-03-2004 02:20


All times are GMT -5. The time now is 10:31.

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