Tell motor its current position on init

Hi everyone,

I am implementing a fail safe for the position. After every loop, the motor position is saved in database. Before commencing the next loop, serial command will query the motor position and compare it against the value in db.

Now, if these values are hugely different, is there any way/command to tell the motor what its position is? E.g., ask it to revise its current position?

P.S: here i have used various assumptions e.g., a momentary power loss, flat battery, etc. In my use case, i do not have liberty to set a target to go to the desired position. In my use case, if it is at 100, i need it to be at 100 and recognise as such.

1 Like