|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||||
|
|||||
|
Re: A Portable Serial Data-logger for the FRC Robot Controller
Quote:
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. |
|
#3
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |