Restore Defaults (80)
Restore Defaults (80)
I just found an inconsistency in the manual regarding command 80: contrary to the manual the command has to be followed by two CRC-bytes. After changing this in my code, I get the 0xFF acknowledge and the command is working.
The bad thing is, that now the 65 command isn't working anymore. I try to set some initial parameters using commands 98, 28 and 61, but this doesn't seem to be enough anymore.
What is the minimal set of commands that have to be used after Restore command to get 65 working again ?
The bad thing is, that now the 65 command isn't working anymore. I try to set some initial parameters using commands 98, 28 and 61, but this doesn't seem to be enough anymore.
What is the minimal set of commands that have to be used after Restore command to get 65 working again ?
Re: Restore Defaults (80)
I got it working, by waiting for 500msec after the reset command.
Nevertheless I would like to know which settings are required after a reset command.
Thanks in advance.
Nevertheless I would like to know which settings are required after a reset command.
Thanks in advance.
Re: Restore Defaults (80)
By try and error I found out that only commands 28 (29) and 61 (62) are required to get 65 (66) working after reset. The required values I read from a file created by the studio.
Re: Restore Defaults (80)
I just discovered, that the encoder registers should be reset to get a defined home position (commands 22 and 23).
Re: Restore Defaults (80)
I published my code on github: https://github.com/woko54/roboclaw
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Restore Defaults (80)
Thank you for all the updates and publishing your code.
Re: Restore Defaults (80)
Has someone made some experiences with using an end-switch for a homing process ?
I want to implement it into my code and haven't found a solution yet.
I want to implement it into my code and haven't found a solution yet.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Restore Defaults (80)
What has been the trouble? Setting up S4 or S5 for a single limit is fairly simple using Motion Studio. Note the switches do nothing unless the motors are commanded to move so if you are manually testing expecting some action without actually command the motor to move, that may be what is confusing you.