diff options
author | Michael Cetrulo <mail2samus@gmail.com> | 2012-06-16 17:04:31 (GMT) |
---|---|---|
committer | Michael Cetrulo <mail2samus@gmail.com> | 2012-06-16 17:05:46 (GMT) |
commit | 482cea10aca98f5703138e94f524b35a1086e93c (patch) | |
tree | 983be488cc3a935ffa8cf18cba0cca30bef3cbd8 /LegoJAM.py | |
parent | f2a8cf1da1ddc42899bbabdeb4a1a9f43b9bba02 (diff) |
evito "import *"
Diffstat (limited to 'LegoJAM.py')
-rwxr-xr-x | LegoJAM.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -12,7 +12,7 @@ sys.path.append("nxt_plugin") # Import the API functions # Importamos las funciones de la API import nxt -from nxt import * +from nxt import Motor from interface.window import Window @@ -115,9 +115,9 @@ class Pancho(): except: print "El Robot se Encuentra Desconectado o Apagado" sys.exit(0) - self.motorA = Mimotor("A", self.robot, PORT_A) - self.motorB = Mimotor("B", self.robot, PORT_B) - self.motorC = Mimotor("C", self.robot, PORT_C) + self.motorA = Mimotor("A", self.robot, nxt.PORT_A) + self.motorB = Mimotor("B", self.robot, nxt.PORT_B) + self.motorC = Mimotor("C", self.robot, nxt.PORT_C) def run_motor(self, motor): if motor == "A": |