Code turning Issue

My team has been attempting to make an advanced code for Auton and we have experienced the issue of the bot spinning in circles infinitely when I attempt to turn to any rotation. I attached A screenshot of the part of the program that controls Autonymous Drive and turn. Any Ideas are appreciated