Coding a Drivetrain for V5 VS code

Hi, I am trying to code a drivetrain with 2 motors and I was wondering how I could define/code it so I can use the drivetrain functions. I am using python on VS code.

You could create the drivetrain in VexCode or use one of the sample programs, and then copy / paste it over to VSCode.

Visit https://codev5.vex.com

  1. Start a New Text Project
  2. Add a DriveTrain to your Devices with your parameters
  3. View the generated code by clicking the + on line 1 to expand the Region VEXcode line.

It should look something like the following:

left_drive_smart = Motor(Ports.PORT1, GearSetting.RATIO_18_1, False)
right_drive_smart = Motor(Ports.PORT2, GearSetting.RATIO_18_1, True)
drivetrain = DriveTrain(left_drive_smart, right_drive_smart, 319.19, 400, 300, MM, 1)