revised motor 2 config for rotary mode

This commit is contained in:
sanjayk03-dev
2025-06-24 22:05:34 +05:30
parent 33a352e14c
commit 7f18f0a573
3 changed files with 18 additions and 9 deletions

View File

@@ -660,13 +660,14 @@ class RotaryHandler(bbctrl.APIHandler):
path = ctrl.get_path('config.json')
rotary_config = {
'min-soft-limit': -720,
'max-soft-limit': 720,
'max-velocity': 100,
'min-soft-limit': -3600,
'max-soft-limit': 3600,
'max-velocity': 6.696,
'max-accel': 500,
'max-jerk': 750,
'max-jerk': 1000,
'step-angle': 0.25714,
'travel-per-rev': 360
'travel-per-rev': 360,
"microsteps": 16,
}
try:

View File

@@ -278,6 +278,10 @@
"travel-per-rev": {
"type": "float",
"default": 5
},
"microsteps": {
"type": "int",
"default": 32
}
}
},

View File

@@ -385,7 +385,8 @@
"max-accel": 750,
"max-jerk": 1000,
"step-angle": 1.8,
"travel-per-rev": 10
"travel-per-rev": 10,
"microsteps": 16
},
{
"axis": "Y",
@@ -395,7 +396,8 @@
"max-accel": 750,
"max-jerk": 1000,
"step-angle": 1.8,
"travel-per-rev": 10
"travel-per-rev": 10,
"microsteps": 16
},
{
"axis": "Y",
@@ -405,7 +407,8 @@
"max-accel": 750,
"max-jerk": 1000,
"step-angle": 1.8,
"travel-per-rev": 10
"travel-per-rev": 10,
"microsteps": 16
},
{
"axis": "Z",
@@ -415,7 +418,8 @@
"max-accel": 750,
"max-jerk": 1000,
"step-angle": 1.8,
"travel-per-rev": 4
"travel-per-rev": 4,
"microsteps": 16
}
],