This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const uint8_t BUF_LEN = 6; | |
/* Pin values */ | |
int d0 = 0; | |
int d1 = 0; | |
int d2 = 0; | |
int d3 = 0; | |
int d4 = 0; | |
int d5 = 0; | |
unsigned long time = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Viewer import Viewer | |
from VideoAnalyzer import VideoAnalyzer | |
from Constants import * | |
import time, pygame | |
import os | |
os.environ['SDL_VIDEO_CENTERED'] = '1' # Set the window in the center | |
vw = Viewer() | |
va = VideoAnalyzer(vw) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Marc-Daniel Julien | |
Akiva Krauthamer | |
Intro to Physical Compting | |
Carnegie Mellon University | |
CarLogic implements all of the behavior of the robot via a | |
Finite State Machine | |
""" | |
from VideoThread import VideoThread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Marc-Daniel Julien | |
# Akiva Krauthamer | |
# Intro to Physical Compting | |
# Carnegie Mellon University | |
import cv2 | |
import time, sys | |
import numpy as np | |
from scipy import misc | |
import wiringpi2 as wpi |