Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/CMCRobotics/raspbuggy
Browse files Browse the repository at this point in the history
  • Loading branch information
bcopy committed Jul 1, 2015
2 parents d4f6380 + 343bb6a commit 9815542
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion modules/drivar/src/main/python/DrivarNxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ def isObstacleWithin(self, distance):
return False

def rotatePen(self, angle):
self.m_penMotor.turn(70, angle)
power = 70
if angle < 0:
angle = -1 * angle
power = -70
self.m_penMotor.turn(power, angle)

def getReflectivityMeasurement(self):
self.m_lightSensor.set_illuminated(True)
return self.m_lightSensor.get_sample()

def wait(self, milliseconds):
Expand Down
4 changes: 2 additions & 2 deletions modules/pywebide/src/main/webapp/js/raspbuggy.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function Raspbuggy() {
this.statusUpdateCallbacks = [];
this.m_abortScriptCallback = null;
this.m_scriptOutputCallback = null;
// this.SCRIPT_PREFIX = "from Drivar import Drivar\nfrom DrivarNxt import DrivarNxt\ndrivar = DrivarNxt()\ndrivar.initialize()\n\n"
this.SCRIPT_PREFIX = "from Drivar import Drivar\nfrom DrivarNoop import DrivarNoop\ndrivar = DrivarNoop()\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\ndrivar.initialize()\n\n"
this.SCRIPT_PREFIX = "from Drivar import Drivar\nfrom DrivarNxt import DrivarNxt\ndrivar = DrivarNxt()\ndrivar.initialize()\n\n"
// this.SCRIPT_PREFIX = "from Drivar import Drivar\nfrom DrivarNoop import DrivarNoop\ndrivar = DrivarNoop()\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\ndrivar.initialize()\n\n"
}


Expand Down

0 comments on commit 9815542

Please sign in to comment.