-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix diagnostic for AEA encoder and calibration type 10 #540
Fix diagnostic for AEA encoder and calibration type 10 #540
Conversation
fcec5f6
to
174ba74
Compare
Added debug lines for testing the calibration type 10 Update calibration type 10 procedure making more robust and removing errors at restarting
174ba74
to
dddd255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is fine for me, I asked about a detail for the sake of curiosity.
@@ -626,7 +626,7 @@ BOOL JointSet_do_wait_calibration_10(JointSet* o) | |||
} | |||
else | |||
{ | |||
if (AbsEncoder_is_hard_stop_calibrating(encoder)) | |||
if (AbsEncoder_is_hard_stop_calibrating(encoder) && (!encoder->state.bits.not_initialized)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MSECode, can it happen that a calibration command is sent before the encoder is configured?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it happened to me sometimes. I'm not sure why, but it was most likely to happen after restarting the yarprobotinterface
without switching off and on the boards.
This caused the problem of not allowing the joint to reach the hw limit.
If you wanna dig on that I've collected more details and tests done here: #529 (comment), #529 (comment)
hi @MSECode, this PR triggers a lot of linked PRs. Let me have a look at them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR solves issue related to calibration type 10 for joints that use AMO encoders.
Moreover we solve the diagnostic problem related to AEA encoders described here: #533
Precisely, it brings the following improvements and fixes:
Tests done on the robot are collected here:
The issues that interested the AMO encoders and the calibration type 10 are collected here:
It is related to: