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

glaba

Rookie

Joined: Sun Jul 14, 2013 9:41 amPosts: 3

Re: Debug Stream Buffer

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

Sun Jul 14, 2013 1:06 pm

JohnWatson

Site Admin

Joined: Thu May 24, 2012 12:15 pmPosts: 672

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).

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?

Who is online

Users browsing this forum: No registered users and 2 guests

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