Terminal in VEXcode

So I’m trying to test a PID controller for driving, but I can’t seem to figure out how to use the terminal. Currently, I’m printing information out to the brain, which as you might guess, isn’t a great way to debug a program. Correct me if I’m wrong, but the terminal is used supposed to be used to print information. I’ve tried using cout << “text\n”; and printf(“text\n”);, but neither of them printed anything to the terminal. Thanks in advance.

You have to open the Terminal tab in the IDE and be connected to the robot, if you’re not already doing that. Note that the Terminal tab for feedback from the robot is not the same as the terminal window that shows compiler output.

2 Likes

Would the terminal window in the tabs with Output and Problems be robot feedback or compiler output?

The tab labeled “Terminal” is for the printf() and cout from your code.

image

3 Likes

Can you give more specific details for how to get it to display in the terminal? I have cout << “text\n” << endl; in my code and I have the terminal tab open on the bottom, but nothing is showing up there.

If you are having code problems, please post your code (remember to wrap it in [code]…[/code] tags for formatting), otherwise it is very difficult to figure out what’s going on.

1 Like

I am having problems getting the Terminal Tab (alongside the Output and Problems Tabs) to output a printf(“hello\n”); It was working fine with vexcode version 19.07.1619 but the same code loop and print statements would not work on version 1.0.1 (19.10.1015). The File - Preferences has “Enable Terminal” selected. I even enabled “Download Channel on Connect”. I also have the controller connected to the computer and wirelessly downloading programs to the robot. As I said, this was working fine on the older version of vexcode, Please help restore this essential function.

1 Like

This exact same thing has happened to me. I’m really hoping someone can help with this, so hopefully this’ll get seen.

1 Like

yea, something is broken with the terminal in the windows build of VEXcode. Hopefully get that back working in the next verison.

5 Likes