You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello again
i have just add a rename map , but i get this error: motor.move_to_target(TARGET_POSITION)
File "/usr/local/lib/python3.9/dist-packages/motor402-0.1.0-py3.9.egg/motor402/motor.py", line 80, in move_to_target
self.set(target_index, int32(value))
File "/usr/local/lib/python3.9/dist-packages/motor402-0.1.0-py3.9.egg/motor402/motor.py", line 214, in set
index, subindex = self._look_up(variable_index, subindex)
File "/usr/local/lib/python3.9/dist-packages/motor402-0.1.0-py3.9.egg/motor402/motor.py", line 184, in _look_up
return (var.index, var.subindex)
AttributeError: 'NoneType' object has no attribute 'index'
Here us my code:
NODE_ID = 0x01
EDS_PATH = "/home/pi/Desktop/TBS3.eds"
TARGET_POSITION = 200
rename_map = {
"controlword": "Controlword 1",
"statusword": "Statusword 1",
"operating_mode": "Modes of Operation 1",
"target_position": "Target Position 1",
"profile_velocity": "Profile Velocity in pp-mode 1",
"target_velocity": "Target Velocity 1",
"homing_method": "Homing Method 1",
"position_actual_value": "Position Actual Value 1",
"velocity_actual_value": "Velocity Actual Value 1",
"switches": "Switch Parameters 1",
"microstep_resolution": "Microstep Resolution 1"
}
Hello i get this error
motor = Motor(node)
TypeError: init() missing 1 required positional argument: 'rename_map'
can you help me
Thanks
luca
The text was updated successfully, but these errors were encountered: