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

2 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