-
Notifications
You must be signed in to change notification settings - Fork 212
fix check motion done + remove warning #3321
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,7 +34,7 @@ return_isJointBraked ControlBoardRPCd::isJointBrakedRPC(const std::int32_t j) co | |||||
| ret.ret = m_iJointBrake->isJointBraked(j, ret.isBraked); | ||||||
| if (!ret.ret) | ||||||
| { | ||||||
| yCError(CB_RPC, "isJointBraked() failed"); | ||||||
| //yCError(CB_RPC, "isJointBraked() failed"); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Silencing error logs can make it difficult to diagnose problems. This log indicates a failure in the underlying
Suggested change
|
||||||
| } | ||||||
| return ret; | ||||||
| } | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2339,8 +2339,8 @@ bool PartItem::updatePart() | |
| if (m_iPos) | ||
| { | ||
| bool boolval = true; | ||
| m_iPos->checkMotionDone(m_slow_k, &boolval); // using k to save bandwidth | ||
| m_done[m_slow_k] = boolval; | ||
| ret_motdone = m_iPos->checkMotionDone(m_slow_k, &boolval); // using k to save bandwidth | ||
| m_done[m_slow_k] = boolval; // @randaz: are you sure about set true if ret_motdone==false ? | ||
|
Comment on lines
+2342
to
+2343
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value of the output parameter ret_motdone = m_iPos->checkMotionDone(m_slow_k, &boolval); // using k to save bandwidth
if (ret_motdone)
{
m_done[m_slow_k] = boolval;
} |
||
| } | ||
| if (m_ijointbrake) | ||
| { | ||
|
|
@@ -2392,7 +2392,7 @@ bool PartItem::updatePart() | |
| } | ||
| if (!ret_jntbrk) | ||
| { | ||
| yWarning() << "Missing Implementation of isJointBraked()"; | ||
| // yWarning() << "Missing Implementation of isJointBraked()"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commenting out this warning hides a recurring issue. If yWarning() << "Missing Implementation of isJointBraked()"; |
||
| } | ||
|
|
||
| // *** update the widget every cycle *** | ||
|
|
||
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.
Commenting out error logs is generally not a good practice as it can hide underlying issues and make debugging more difficult. If this error is being triggered frequently for non-critical reasons (e.g., an optional interface not being present), consider downgrading it to
yCWarningoryCDebug. Alternatively, the calling code could handle this failure more gracefully, perhaps by checking for the interface's availability once and then avoiding repeated calls.