Connecting to brain, display tells the code is running but nothing happens

Hi, newbie programmer here.

I’m trying to run some test code in C++ involving a Drivetrain, when I run it, the display on the robot shows what I’m pretty sure is proof the code is running, just a mostly blank screen and a time elapsed in the top left, but the robot is not actually doing anything. Functions like Drivetrain.driveFor aren’t doing anything even though I’m next to certain I selected the correct ports where the motors are connected to.

If you need any other information, please let me know, I’ll try my best to provide any.

P.S. Apologies in advance, please tell me if I’m doing something I shouldn’t be doing, this is my first time on vexforum.

Welcome to the forums! Please post your code so we can see what’s going on. We can’t help you if we don’t know what’s going wrong.

My code is:

#pramga region VEXcode Generated Robot Configuration (and then a bunch of other lines)

#include “vex.h”

using namespace vex;

float myVariable;

int whenStarted1(){return 0;}

int main(){vexcodeInit();Drivetrain.driveFor(forward,1,inches);}

Also sorry if things look squished, that’s how I usually program.

And just in case it helps for some reason, I’m using a 2nd generation brain and I’m using 2 motors on ports 1 and 6.

Are ports 1 and 6 defined as the drivetrain in vexcode/whatever interface you’re using?