Exemple #1
0
 def tearDown(self):
     '''Teardown for each test.
     
     '''
     
     # Delete leftover files
     utilities.clean_up(testing_root_dir)
Exemple #2
0
        my_camera.view_image(foto, "johann")
        is_ball, new_image = my_camera.check_for_ball(image=foto,
                                                      color="blue",
                                                      radius=60)
        logging.info("is_ball: {}".format(is_ball))
        my_camera.view_image(new_image, "paul")

        for _ in range(5):
            red_ball, blue_ball = my_camera.check_for_balls()
            logging.info("FARBE: red: {}, blue: {}".format(
                red_ball, blue_ball))

        tunnel_licht(False)

    while True:
        try:
            if normal is True:
                end = main()
            if normal is False:
                pass

            #  if end is True:
            #      break

        except KeyboardInterrupt:
            clean_up(motor)

            logging.error(
                "Keyboard Interupt. Stop motors. Reset Nano. Reset LED's")
            break