How to program RobotC for VEX IQ Gyro Sensor to work with specific Motor?


Does anyone know how to program VEX IQ Gyro Sensor under RobotC to command preferable motor?

i.e. I have set Motor #1 & #2 to be driving motors but I want Motor #3 to work with Gyro Sensor such as whenever Motor #3 turn clockwise or counterclockwise it will turn back to its original position that commanded by Gyro Sensor?