removed loggers
This commit is contained in:
@@ -635,7 +635,6 @@ class RotaryHandler(bbctrl.APIHandler):
|
|||||||
|
|
||||||
is_axis_A = motor_2.get("axis") == "A"
|
is_axis_A = motor_2.get("axis") == "A"
|
||||||
|
|
||||||
log.info("is_axis_A: {} | status: {}".format(is_axis_A, status))
|
|
||||||
if is_axis_A == status: return
|
if is_axis_A == status: return
|
||||||
|
|
||||||
motor_2["axis"] = "Y" if is_axis_A else "A"
|
motor_2["axis"] = "Y" if is_axis_A else "A"
|
||||||
@@ -652,7 +651,6 @@ class RotaryHandler(bbctrl.APIHandler):
|
|||||||
'travel-per-rev-backup'
|
'travel-per-rev-backup'
|
||||||
]
|
]
|
||||||
if all(key in motor_2 for key in required_keys):
|
if all(key in motor_2 for key in required_keys):
|
||||||
self.log.info("Restoring backup values for motor_2")
|
|
||||||
motor_2['min-soft-limit'] = motor_2['min-soft-limit-backup']
|
motor_2['min-soft-limit'] = motor_2['min-soft-limit-backup']
|
||||||
motor_2['max-soft-limit'] = motor_2['max-soft-limit-backup']
|
motor_2['max-soft-limit'] = motor_2['max-soft-limit-backup']
|
||||||
motor_2['max-velocity'] = motor_2["max-velocity-backup"]
|
motor_2['max-velocity'] = motor_2["max-velocity-backup"]
|
||||||
@@ -678,7 +676,6 @@ class RotaryHandler(bbctrl.APIHandler):
|
|||||||
motor_2['max-jerk'] = 750
|
motor_2['max-jerk'] = 750
|
||||||
motor_2['step-angle'] = 0.25714
|
motor_2['step-angle'] = 0.25714
|
||||||
motor_2['travel-per-rev'] = 360
|
motor_2['travel-per-rev'] = 360
|
||||||
log.info("Updated motor_2: {}".format(motor_2))
|
|
||||||
|
|
||||||
config.save(config_data)
|
config.save(config_data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user