diff options
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": |