update
This commit is contained in:
parent
dbda82b076
commit
a4f6b73e45
4 changed files with 6 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue