Skip to content

Commit

Permalink
#35 (#39)
Browse files Browse the repository at this point in the history
* fix route errors

* Update load module for indicators

* install neopixel for travis

* fix init pin 23 [BLE]

* pass build param to travis [indicators]

* install icons on travis

* recompile indicators with scons

* compile on bin dir

* refactor import paths for indicators

* fix multiple compilation errors
  • Loading branch information
saoron authored Jul 29, 2017
1 parent f8cf669 commit 83143dd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before_install:
- sudo apt-get update

install:
- sudo apt-get install python-dev python-numpy
- sudo apt-get install python-dev python-numpy scons
- pip install pyserial

before_script:
Expand All @@ -16,7 +16,9 @@ before_script:
- make -j4
- sudo make -j4 install
- export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages:/home/travis/build/dride/Cardigan

- cd /home/travis/build/dride/Cardigan/modules/indicators/bin
- scons
- sudo python /home/travis/build/dride/Cardigan/modules/indicators/setup.py build
python:
- "2.7"

Expand Down
5 changes: 3 additions & 2 deletions classes/capture.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import cv2
import numpy as np
import time
from config import *

from classes.gps import GPS


class capture(config):
class capture():


rolloverMinutes = 1
Expand All @@ -29,7 +30,7 @@ def __init__(self, w, h, config):
# load config
self.config = config

def captureFrame(self, frame, config):
def captureFrame(self, frame):

# if the video should be flipped
if self.config['flip'] == True:
Expand Down
2 changes: 1 addition & 1 deletion classes/forwardCollisionWarning.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import math
import time
from config import *
from modules.indicators.states.indicators import Indicators
from modules.indicators.python.states.indicators import Indicators


class forwardCollisionWarning(object):
Expand Down
2 changes: 1 addition & 1 deletion classes/laneDepartureWarning.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from classes.sound import sound
import time
from config import *
from modules.indicators.states.indicators import Indicators
from modules.indicators.python.states.indicators import Indicators


class laneDepartureWarning(object):
Expand Down
2 changes: 1 addition & 1 deletion daemons/bluetooth/initPin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

GPIO.setmode(GPIO.BCM)

GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)

2 changes: 1 addition & 1 deletion mainPi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from config import *
from classes.sound import sound

from modules.indicators.states.indicators import Indicators
from modules.indicators.python.states.indicators import Indicators

def run_program():
# initialize the camera and grab a reference to the raw camera capture
Expand Down

0 comments on commit 83143dd

Please sign in to comment.