When starting to program with VEXcode IQ, Drive and Turn blocks will not appear in the Toolbox until a Drivetrain has been configured.
You can only configure one Drivetrain per project.
Here are the different options when configuring a 4-Motor Drivetrain without a Gyro:
- Adding a Drivetrain
- Changing a Drivetrain’s Port Numbers
- Changing a Drivetrain’s Wheel Size
- Changing a Drivetrain’s Track Width
- Changing a Drivetrain’s Gear Ratio
- Reversing a Drivetrain
- Deleting a Drivetrain
In this article, the default values in the Drivetrain Settings are for the VEX IQ Clawbot.
Adding a Drivetrain
To configure a Drivetrain, select the Devices button to open the Devices window.
Select “Add a device.”
Select "Drivetrain 4-Motor."
Note: To configure a 2-Motor Drivetrain (No Gyro), click here.
Select which ports the Left Motors and Right Motors are attached to on the VEX IQ Brain. Ports that are already configured for other devices will be unavailable.
Turn the Gyro off by un-checking the Gyro box.
Once the Drivetrain has been configured, select “Done” to submit the device to 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
You can change the port numbers for the Left Motors or Right Motors in the Drivetrain by selecting the device’s plug icon in the top right corner of the Options screen.
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
You can change the wheel size for the Drivetrain by selecting the drop down menu under “Wheel Size.”
Changing a Drivetrain’s Track Width
You can change the size of the track width for the Drivetrain by entering the values in the number box and by selecting the drop down menu under “Track Width.” The track width is the measurement between the middle of the front left wheel to the middle of the front right wheel.
Changing a Drivetrain’s Gear Ratio
You can change the gear ratio for the Drivetrain by entering values in the “Input” and “Output” boxes.
Reversing a Drivetrain
The Options screen also allows the direction of the Drivetrain to be reversed.
Deleting a Drivetrain
A Drivetrain can also be deleted by selecting the “Delete” option at the bottom of the screen.