Skip to content
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

Clarify diagnostics messages #10

Closed
marcoaccame opened this issue Sep 25, 2015 · 10 comments
Closed

Clarify diagnostics messages #10

marcoaccame opened this issue Sep 25, 2015 · 10 comments
Assignees

Comments

@marcoaccame
Copy link
Contributor

Diagnostics messages sent by the EMS / MC4PLUS boards need to be easily understood.

There are several ways do do so:

  • in file EoError.c in icub-firmware-shared repository, add a textual description which explains the meaning of the two par16 and par64 parameters.
  • increase the level of details of some errors (e.g., the generic motor error), possibly splitting a generic situation into more detailed ones.
  • implement at robotInterface level a parser which expands the compact form of the diagnostics messages into more human readable prints.
@marcoaccame
Copy link
Contributor Author

a further requirement is:

  • add in repository a document which explains in details the errors so that anyone can easily understand what is happening.

@marcoaccame
Copy link
Contributor Author

@Ale can begin improving messages related to MC then he can assign back the issue to me so that I can improve other messages.

@valegagge
Copy link
Member

We'll change spike diagnostic: fw sends diagnostic message to robot interface with number of spikes occurred in last second. If there aren't spikes, then no diagnostic message is sent.

@davege89 implemented this behaviour on branch for test. He will merge it in master.

@valegagge
Copy link
Member

related issue #45

@davege89
Copy link
Contributor

Done with SHA: 025c248.
@ale-git has worked on others MC diagnostics message with SHA: d8b0cac

@marcoaccame
Copy link
Contributor Author

@ale-git , i have seen that you have changed the description of the errors, but I think it is still required the description of what par16 and par64 contain. The aim is to print all the information required to understand what is happening and where to search the robot for fixing it without the need to browse the source code.

For instance, the error eoerror_value_MC_aea_abs_enc_invalid, the one that @DanielePucci comments about in issue #45 has text:

"MC: AEA encoder invalid data. Hardware problem in the magnetic position sensor of the joint caused invalid position readings."

but does not have indication of the the joint in which the problem happens (which by now I know it is in par16, but people from P&M do not know). Also, what is inside par64?

@DanielePucci
Copy link

Yes guys, this bad diagnostics make us loos years.

@ale-git
Copy link
Contributor

ale-git commented Nov 25, 2015

I've added the "par16 = ID of joint" specification in all messages since the meaning is always the same, and removed all redundant par64. Anyway, I think that robotInterface should interpret the messages and print them in readable format, instead of printing them in raw format together with the decription book :-)

@DanielePucci
Copy link

@ale-git 👍

@valegagge
Copy link
Member

A very old issue. If necessary we'll reopen a new one. Closing...

@valegagge valegagge closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants