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: https://help.vexcodingstudio.com/#pro/namespacevex/classvex_1_1gyro/gyro
To create the gyro, it should be Gyro gyro(portNum);
Then you can use functions such as value():
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.