Field Centric X Drive Coding HELP!

The issue might be that SensorValue[Gyro] is returning as integer and when you divide it by another int to get to radians it gets truncated. Try to divide it by floating point number i.e. 522.0 to ensure floating point math.

Also, try to send power values to motors using true speed mapping for keeping best ratio between X and Y.

It is very easy to add to your program - one global array and a function with a couple of if() statements to check for sign and upper array bound. Just make sure you follow this workaround or latest version of RobotC may have issues uploading the code: