Currently the gyro sensor connected to the EV3 brick doesn't really work. whenever the gyro is attempted to be used the robot will just sit and spin once it gets to where it needs to use the gyro. Any suggestions would be appreciated
forward(4.8, rotations, 50);
wait(.5, seconds);
resetGyro(S2);
setMotor(motorB, 35);
setMotor(motorC, -35);
waitUntil (getGyroDegrees(gyroSensor) > 80);
forward(2, rotations, 50);
wait(.5, seconds);
resetGyro(S2);
setMotor(motorB, 35);
setMotor(motorC, -35);
waitUntil (getGyroDegrees(gyroSensor) > 80);
forward(4.8, rotations, 50);
wait(.5, seconds);
resetGyro(S2);
setMotor(motorB, -35);
setMotor(motorC, 35);
waitUntil (getGyroDegrees(gyroSensor) > 80);
forward(2, rotations, 50);
wait(.5, seconds);
resetGyro(S2);
setMotor(motorB, -35);
setMotor(motorC, 35);
waitUntil (getGyroDegrees(gyroSensor) > 80);