Go to Post If we all keep our "secrets" about our robots, the rest of us don't learn as much. - Rick TYler [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 12-01-2008, 23:24
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
A Portable Serial Data-logger for the FRC Robot Controller

I just finshed building a cool project to help us debug our code during Hybrid and teleop mode.

I wanted to be able to record dagnostic data from the RC and I didn't want to use wireless because I thought it would also be helpfull during competitions.

I got a cool serial datalogger from Spark Fun and adapted it to the RC Serial Port 2. It only took a single 4 wire cable and simple code modification... Only a couple of hours work.

If you want to get dynamic driving data from your bot... check out the white paper I just wrote...

http://www.chiefdelphi.com/media/papers/2065
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #2   Spotlight this post!  
Unread 13-01-2008, 00:04
Tim Arnold's Avatar
Tim Arnold Tim Arnold is offline
1902 UCF Mentor; 1523 MARS Alumni
FRC #1902 (Exploding Bacon)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 460
Tim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond repute
Send a message via AIM to Tim Arnold Send a message via MSN to Tim Arnold
Question Re: A Portable Serial Data-logger for the FRC Robot Controller

Wow, this is very cool! The writeup makes it look quite simple as you say, but my main question is if you know if the serial communications for this are possible with EasyC.
  #3   Spotlight this post!  
Unread 13-01-2008, 00:06
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: A Portable Serial Data-logger for the FRC Robot Controller

I asked the question today, whether Easy/C printf output can be redirected to the 2nd serial port.

I looked at the WPILIB documentation, it is dead simple to output to the second serial port - but there is no printf - so you will have to supply your own.
  #4   Spotlight this post!  
Unread 13-01-2008, 10:19
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: A Portable Serial Data-logger for the FRC Robot Controller

Quote:
Originally Posted by mluckham View Post
I asked the question today, whether Easy/C printf output can be redirected to the 2nd serial port.

I looked at the WPILIB documentation, it is dead simple to output to the second serial port - but there is no printf - so you will have to supply your own.
I've not used Easy C, but if you can output to the second serial port, then maybe you can use sprintf()

sprintf is just like printf, except that instead of sending text to the "console" it writes the resultant text to a string variable.

So if you declare a char array:

char Buffer[128] ;

And then write your data to that using sprintf..

sprintf(Buffer, "%d,%d,%d\r\n", test1, test2, test3);

Then you can send Buffer to the second serial port.

You need to make sure that Buffer is big enough for ANY single string you want to write out.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #5   Spotlight this post!  
Unread 13-01-2008, 10:26
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: A Portable Serial Data-logger for the FRC Robot Controller

This is excellent work!!!

I've had that very same idea for quite sometime, but have never pursued it.
You've beat me to it.!!

Nice job, well done.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


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
How Can I Program The FRC Robot Controller To Display My Team Number jesusescobar Programming 5 22-01-2007 10:29
What is the FRC Robot Controller Power Consumption amateurrobotguy Electrical 4 02-03-2006 00:23
USB to Serial converter for controller Ryan Collings Programming 10 22-01-2005 13:14
wich fuse should i use for the FRC Robot Controller? or yaniv Electrical 3 18-01-2005 14:50
delta_t data in Robot controller GreenDice Technical Discussion 3 06-01-2002 08:32


All times are GMT -5. The time now is 09:16.

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