Debug Stream Buffer
Page 1 of 1

Author:  glaba [ Sun Jul 14, 2013 9:49 am ]
Post subject:  Debug Stream Buffer

On the robotc website, it says that the debug stream has a buffer of 2 kb on the cortex when the cortex isn't plugged into the computer. Is the amount of data allowed on the debug stream more than 2 kb when connected to the computer, and is there a way to increase the amount if it's not?

Author:  glaba [ Sun Jul 14, 2013 1:06 pm ]
Post subject:  Re: Debug Stream Buffer

On an unrelated note, can you create a pointer to a struct?

Author:  JohnWatson [ Mon Jul 15, 2013 3:12 pm ]
Post subject:  Re: Debug Stream Buffer

1) Since the buffer is constantly being uploaded to the computer and cleared while the Cortex is connected to the computer, you won't run into the 2k limit at all. The 2k limit applies when the Cortex is completely disconnected from the computer and is storing the data in the buffer until the Cortex is reconnected to the PC.

2) Yes, you can create a pointer to a struct in ROBOTC. For more information on pointers and how they work, please see the ROBOTC wiki page on Pointers. There is also a general overview of structs on the Using Structs ROBOTC wiki page that you may want to check out (you can also do a search for 'C structs' on the internet for more information on how structs are used).

Author:  glaba [ Tue Jul 16, 2013 1:09 pm ]
Post subject:  Re: Debug Stream Buffer

Thank you. I'm currently building a neural network to autonomously control the robot, and I need to use the debug stream in order to get training data (from manual control). To go on from this, why does a program that I wrote crash while it's compiling?

Whenever I remove the writeDebugStream command, it compiles, but when I put it in, RobotC "stops working", and windows "looks for a problem". Why would including this command cause the compiler to fail somehow?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group