diff --git a/RobotCompletCode.py b/RobotCompletCode.py index 77387b0..0d1394b 100644 --- a/RobotCompletCode.py +++ b/RobotCompletCode.py @@ -76,7 +76,7 @@ class MotorizedPlatform: }) def southTranslation(self, speed): - self.northTranslation(-speed*1.1) + self.northTranslation(-speed) def northTranslation(self, speed): self.setSpeed({ @@ -125,6 +125,8 @@ class MotorizedPlatform: self.northWestTranslation(-speed) def stop(self): + self.init() + """ realescMapping = { 'frontLeft': { 'slot': 12, # 7 @@ -151,6 +153,7 @@ class MotorizedPlatform: 0, self.convert_speed_to_esc(0, realescMapping[esc_name]['range']) ) + """ def oldstop(self): self.escMapping = { diff --git a/__pycache__/Robot.cpython-39.pyc b/__pycache__/Robot.cpython-39.pyc index fb3f111..7dc4979 100644 Binary files a/__pycache__/Robot.cpython-39.pyc and b/__pycache__/Robot.cpython-39.pyc differ diff --git a/__pycache__/RobotCompletCode.cpython-39.pyc b/__pycache__/RobotCompletCode.cpython-39.pyc index 4265ef2..008c4fb 100644 Binary files a/__pycache__/RobotCompletCode.cpython-39.pyc and b/__pycache__/RobotCompletCode.cpython-39.pyc differ diff --git a/server.py b/server.py index 33e3946..9cd9795 100644 --- a/server.py +++ b/server.py @@ -38,6 +38,7 @@ class commandHandler: try: return robot.translation(arg,self.speed) except Exception as e: + print(e) return 'error' def stop(self): robot.stop() @@ -49,6 +50,7 @@ class commandHandler: try: robot.rotation(arg,self.speed) except Exception as e: + print(e) raise e def set_speed(self,v): if v>=50: