I am trying to use the gyro to execute 4 consecutive 90 degree turns. I just use an IF test to turn the robot until it has turned 90 degrees. It works fine if I just do it once, but if I put those same blocks inside a loop to execute 4 times, the yaw (GYRO: First Angle) never updates and the turn never ends. Can anyone say why the yaw value wont update or how to fix it?
OK, figured it out. You have to put the “Set Angles” block inside the loop. I had thought that the “Call Telemetry Add Data” block was sufficient but it was not.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.