You dont have a direction, so its probably turning in the wrong direction, try instead of rotation, using heading. This way you dont have to put a direction
Even with this change- (I changed “drivetrain.turn_to_rotation(90, DEGREES)” to “drivetrain.turn_to_heading(90, DEGREES)”) it still continues running, however thank you so much for your response!!
Looks good and you got very close. So for the drive train what you need is Drivetrain.turnFor(right, 90, degrees); If you want it to go left you just replace the right with a left.
The problem is likely that your motors are not properly reversed, so the robot is turning the wrong direction relative to the value it’s trying to get to. In theory, turn to heading would fix this, but underneath I expect that the code is doing a comparison that’s not going to be properly met when you’re going the opposite direction that the code is expecting.
Try reversing your motors from what they are right now (normal to reversed, reversed to normal), and then see if that doesn’t fix the issue.