while (obstacle_left){

obstacle_left wird vom task_motionControl() nicht aktuallisiert.