i was programming for my 3 different teams 785B E and Z as team A has their own programmer and the team decided using a gyro sensor in order to get more accurate turns would be better for competitions while programming the first bot i got the code to work fine the gyro is working and nice but the second bot the gyro sensor doesn’t stop counting up one problem i did run into was the fact i was translating old code I wrote last year from robotC to C++ for VCS i used absolute values and a lot of voids just to make things easier in the long run even after the is calibrating the gyro still continues to count up
V5 has a quirk, where reading values of sensors, connected to legacy 3-wire ports (analog and digital), were returning 0 if you try to read them right after V5 startup.
So if you are trying running autonomous right after program starts you would need to delay reading those sensors for a short period of time to let it properly initialize.
More details are in this topic:
Finally, you can edit your original post (pencil button) and put [code]...[/code] tags around your code for better readability.