Configuring a 2-Motor Drivetrain in VEXcode IQ (1st gen)

Using VEX IQ (2nd generation)? See this article.

When starting to program with VEXcode IQ, blocks from the Drivetrain category will not appear in the Toolbox until a Drivetrain has been configured.

You can only configure one Drivetrain per project. 

If you are configuring a Drivetrain without a Gyro Sensor, see this article

This article covers the following options when configuring a Drivetrain 2-Motor with a Gyro:


Adding a Drivetrain

select_devices_icon.update.png

To configure a Drivetrain, select the Devices button to open the Devices window.

VEXcode_IQ_-_dev_6QwLpuyG4p.png

Select the generation that you are working with.

VEXcode_IQ_-_dev_v9vZZ2q9LM.png

Select “Add a device.”

select_2motor.png

Select 'Drivetrain 2-Motor.'

drivetrain_motors_1_and_6_and_gyro_4.png

Select which ports the Left Motor, Right Motor, and the Gyro Sensor are attached to on the VEX IQ Brain. Ports that are already configured for other devices will be unavailable.

VEXcode_IQ_-_dev_Abx0JFFqih.png

Once the Drivetrain has been configured, select “Done” to complete the configuration or “Cancel” to return back to the Devices menu.

Note: Selecting “Cancel” will undo any changes you have made to the device and will not be a part of the configuration.


Changing a Drivetrain’s Port Numbers

 

select_plugs_2wheel_w.gyro.png

You can change the port number for the Left Motor, Right Motor, or Gyro in the Drivetrain by selecting the device’s plug icon in the top right corner of the Options screen.

change_ports.2motor.gen1.png

Select a different port on the Port Selection screen and the port number will turn green.

Then, select Done to submit the change.


Changing a Drivetrain’s Wheel Size

change_wheelsize._2w.w.gyro.png

You can change the wheel size for the Drivetrain by selecting the dropdown menu under “Wheel Size.”


Changing a Drivetrain’s Gear Ratio

VEXcode_IQ_-_dev_3sWbr2YqjN.png

You can change the gear ratio for the Drivetrain by entering values in the “Input” and “Output” boxes.


Reversing a Drivetrain

VEXcode_IQ_-_dev_cWFc8Uq1W8.png

The Options screen also allows the direction of the Drivetrain to be reversed.


Deleting a Drivetrain

VEXcode_IQ_-_dev_qTP2iRT2mR.png

A Drivetrain can be deleted by selecting the “Delete” option at the bottom of the screen.