View unanswered posts | View active topics It is currently Thu Aug 21, 2014 10:01 pm






Reply to topic  [ 4 posts ] 
Debug Stream Buffer 
Author Message
Rookie

Joined: Sun Jul 14, 2013 9:41 am
Posts: 3
Post 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?


Sun Jul 14, 2013 9:49 am
Profile
Rookie

Joined: Sun Jul 14, 2013 9:41 am
Posts: 3
Post Re: Debug Stream Buffer
On an unrelated note, can you create a pointer to a struct?


Sun Jul 14, 2013 1:06 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 564
Post 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).

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Jul 15, 2013 3:12 pm
Profile
Rookie

Joined: Sun Jul 14, 2013 9:41 am
Posts: 3
Post 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?


Tue Jul 16, 2013 1:09 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.