Skip to content

controllers/motor.py: removed sync_hard() call in _initialize_axis method

Matias Guijarro requested to merge sync_hard_at_init into master

This is causing troubles with pseudo motors because it triggers a _hw_position() call, that triggers in turn a read on the motor controller in case of a pseudo motor, the read just returns the last dial value and at this moment in this initialization phase it returns None, which breaks because it tries to divide this with the steps per unit (1 in case of pseudo motors).

I see no obvious reason to have a sync_hard here. So I remove it ; it fixes my problem on ID29.

Merge request reports