I’m using the v5 brain and a v4 gyro, but i don’t know how to define it, give it a name, or include it in the program.
Check this website out. This has everything that you’re looking for: VCS API Reference
To create the gyro, it should be Gyro gyro(portNum);
Then you can use functions such as value():
gyro.value(rotationUnits::deg);
1 Like
I mean with vex code not coding studio
VEX Code and VEX Coding Studio have the exact same functions and constants. They are identical when it comes to the actual language.
1 Like