Sub CityShaper_CraneMission
StartBlock
Move.Rotations B+C, 0, 50, 2.25, Brake
Loop(LoopCondition.Time 1.5) '01'
ColorSensor.MeasureReflectedLight 1, out $dNw17
Math.Subtract $dNw17, 40, out $dNw18
Move.Unlimited B+C, $dNw18, 25
Move.Stop B+C, Brake
Move.Rotations B+C, 0, 15, 0.25, Brake
MediumMotor.Degrees A, 25, 60, Brake
WaitFor(Wait.Timer 2)
MediumMotor.Time A, -25, 1, Brake
Move.Rotations B+C, 0, -100, 4, Brake