while turn_has_occurred = 0 |
{ |
if abs(angular_velocity) > gyr_thresh turn_has_occurred = 1; |
else |
if abs(current_angle) > angle_thresh turn_has_occurred = 1; |
end |
end |
} |
while turn_has_occurred = 0 |
{ |
if abs(angular_velocity) > gyr_thresh turn_has_occurred = 1; |
else |
if abs(current_angle) > angle_thresh turn_has_occurred = 1; |
end |
end |
} |