VEXcode V5 Text Help

I switched from VCS to VEXcode, even though they are both C++ based, the program won’t work in VEXcode. How do I add motors? How to I add driver control?

Please import a VCS project using File-Import

For more info please refer to the knowledge base at
https://help.vex.com/category/130-getting-started

There is no file or import on my computer

And theres no robot configuration on mine either

@tfriez is the import feature a 1.0 thing?

@7686B a lot of it is for version 1.0 which should be out today… @tfriez will know about this

You configure motor Ike ‘tis
vex::(device) (port 12);

do i put it in the main folder thingy?

Just outside of int main

ok
20 characters blah

it says undeclared identifier ‘FrontLeftDr’

which is one of my motors in the code

and the same thing for port

Where does it say this?

i wrote the code you gave me and put in the motor name and the correct port number

/*----------------------------------------------------------------------------*/ /* */ /* Module: main.cpp */ /* Author: {author} */ /* Created: {date} */ /* Description: V5 project */ /* */ /*----------------------------------------------------------------------------*/ #include "vex.h"

using namespace vex;

// A global instance of vex::brain used for printing to the V5 brain screen
vex::brain Brain;
// A global instance of vex::competition
vex::competition Competition;

// define your global instances of motors and other devices here

/---------------------------------------------------------------------------/
/* Pre-Autonomous Functions /
/
/
/
You may want to perform some actions before the competition starts. /
/
Do them in the following function. You must return from this function /
/
or the autonomous and usercontrol tasks will not be started. This /
/
function is only called once after the cortex has been powered on and /
/
not every time that the robot is disabled. /
/
---------------------------------------------------------------------------*/

void pre_auton( void ) {
// All activities that occur before the competition starts
// Example: clearing encoders, setting servo positions, …

}

/---------------------------------------------------------------------------/
/* /
/
Autonomous Task /
/
/
/
This task is used to control your robot during the autonomous phase of /
/
a VEX Competition. /
/
/
/
You must modify the code to add your own robot specific commands here. /
/
---------------------------------------------------------------------------*/

void autonomous( void ) {
// …
// Insert autonomous user code here.
// …

}

/---------------------------------------------------------------------------/
/* /
/
User Control Task /
/
/
/
This task is used to control your robot during the user control phase of /
/
a VEX Competition. /
/
/
/
You must modify the code to add your own robot specific commands here. /
/
---------------------------------------------------------------------------*/

void usercontrol( void ) {
// int main() {

/*+++++++++++++++++++++++++++++++++++++++++++++| Notes |++++++++++++++++++++++++++++++++++++++++++++++
Tank Control
This program instructs your robot to use remote control values to move the robot.

Robot Configuration:
[Smart Port] [Name] [Type] [Description] [Reversed]
Motor Port 1 FrontLeftDr Torque Front Left Drive false
Motor Port 2 FrontRightDr Torque Front Right Drive true
Motor Port 3 BackRightDr Torque Back Right Drive true
Motor Port 4 BackLeftDr Torque Back Left Drive false
Motor Port 6 LeftIntake Normal Sucks cubes for tower true
Motor Port 7 RightIntake Normal Sucks cubes for tower false
Motor Port 8 ChutePush Torque Leans chute false
Motor Port 9 ArmMotor Normal Lifts Slurper true
----------------------------------------------------------------------------------------------------*/
vex::(FrontLeftDr) (port 1;
#include “robot-config.h”
int main() {
Brain.Screen.setOrigin(1,1);
//Display that the program has started to the screen.
Brain.Screen.print("");

//Use these variables to set the speed of the arm and claw.
int armSpeedPCT = 100;
int slowClawSpeedPCT = 100;
int chuteSpeedPCT = 70;
Brain.Screen.print("(Subbing to PewDiePie);");
    Brain.Screen.newLine();
    Brain.Screen.newLine();
    Brain.Screen.newLine();
    Brain.Screen.print("(Complete!);");
    Brain.Screen.newLine();
    Brain.Screen.newLine();
    Brain.Screen.newLine();
    Brain.Screen.newLine();
Brain.Screen.print("(Have a great match!);");
    Brain.Screen.newLine();
    Brain.Screen.newLine();
    Brain.Screen.newLine();

//Create an infinite loop so that the program can pull remote control values every iteration.
//This loop causes the program to run forever.
while(1) {
    
    
    //Drive Control 
    //Set the left and right motor to spin forward using the controller Axis values as the velocity value.
    FrontLeftDr.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct);
    BackLeftDr.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct);
    FrontRightDr.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);
    BackRightDr.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);
    
    if(Controller1.ButtonL1.pressing())
        ChutePush.spin(vex::directionType::fwd, chuteSpeedPCT, vex::velocityUnits::pct);
    
    
    if(ArmLimit.pressing())
    {
     ArmMotor.stop(vex::brakeType::brake);
    }
    
    //ArmMotor
    if(Controller1.ButtonL1.pressing()) { //If button L1 is pressed...
        //...Spin the arm motor forward.
        ArmMotor.spin(vex::directionType::fwd, armSpeedPCT, vex::velocityUnits::pct);
    }
    else if(Controller1.ButtonL2.pressing()) { //If the L2 button is pressed...
        //...Spin the arm motor backward.
        ArmMotor.spin(vex::directionType::rev, armSpeedPCT, vex::velocityUnits::pct);
    }
    else { //If the the L1 or L2 button is not pressed...
        //...Stop the arm motor.
        ArmMotor.stop(vex::brakeType::brake);
    }
     //LeftIntake Control
    if(Controller1.ButtonR1.pressing()) { //If the R1 button is pressed...
        //...Spin the LeftIntake forward.
        LeftIntake.spin(vex::directionType::fwd, slowClawSpeedPCT, vex::velocityUnits::pct);
    }
    else if(Controller1.ButtonR2.pressing()) { //If the R2 button is pressed...
        //...Spin the LeftIntake backward.
        LeftIntake.spin(vex::directionType::rev, slowClawSpeedPCT, vex::velocityUnits::pct);
    }
    else { //If the R1 or R2 button are not pressed...        
        //...Stop the LeftIntake.
        LeftIntake.stop(vex::brakeType::brake);        
    }
     //Slow RightIntake Control
    if(Controller1.ButtonR1.pressing()) { //If the R1 button is pressed...
        //...Spin the RightIntake forward.
        RightIntake.spin(vex::directionType::fwd, slowClawSpeedPCT, vex::velocityUnits::pct);
    }
    else if(Controller1.ButtonR2.pressing()) { //If the R2 button is pressed...
        //...Spin the RightIntake backward.
        RightIntake.spin(vex::directionType::rev, slowClawSpeedPCT, vex::velocityUnits::pct);
    }
    else { //If the R1 or R2 button are not pressed...        
        //...Stop the RightArmSlurper.
        RightIntake.stop(vex::brakeType::brake);                
    }
    //ChutePush Control
    if(Controller1.ButtonUp.pressing()) { //If the Up button is pressed...
        //...Spin the ChuteMotor forward.
        ChutePush.spin(vex::directionType::fwd, chuteSpeedPCT, vex::velocityUnits::pct);
    }
    else if(Controller1.ButtonDown.pressing()) { //If the Down button is pressed...
        //...Spin the ChuteMotor backward.
        ChutePush.spin(vex::directionType::rev, chuteSpeedPCT, vex::velocityUnits::pct);
    }
    else { //If the Up or Down button are not pressed...        
        //...Stop the ChutePush.
        ChutePush.stop(vex::brakeType::brake);        
    }
    
	vex::task::sleep(20); //Sleep the task for a short amount of time to prevent wasted resources.
}

}
while (1) {
// This is the main execution loop for the user control program.
// Each time through the loop your program should update motor + servo
// values based on feedback from the joysticks.

// ........................................................................
// Insert user code here. This is where you use the joystick values to 
// update your motors, etc.
// ........................................................................

vex::task::sleep(20); //Sleep the task for a short amount of time to prevent wasted resources. 

}
}

//
// Main will set up the competition functions and callbacks.
//
int main() {
//Set up callbacks for autonomous and driver control periods.
Competition.autonomous( autonomous );
Competition.drivercontrol( usercontrol );

//Run the pre-autonomous function. 
pre_auton();
   
//Prevent main from exiting with an infinite loop.                        
while(1) {
  vex::task::sleep(100);//Sleep the task for a short amount of time to prevent wasted resources.
}    

}

I messed it up up there it should be this
vex::motor name (vex::PORT20, vex::gearSetting::ratio18_1,true);

oh ok

20 characters a

The import feature is not specific to 1.0

import

(Downloaded Two Weeks Ago)

It seems to work now, no more errors thanks so much