I have make the X-Drive robot , and I want to know how to used the Drivetrain with gyro in the VEXcode pro V5 .
The built-in drivetrain
and smartdrive
classes in VEXcode Pro V5 do not support x-drives.
You can write your own code to control the x-drive, more on how that works in this thread:
(Code examples there are in ROBOTC but should give a decent idea of how things work. Or just search the forum for “x drive programming”)
Or, if you want to use PROS, there’s an XDriveModel
class in OkapiLib.
3 Likes