-
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
Too many debug messages on iCubGenova11 #497
Comments
In analyzing the code of the 2foc w/ @MSECode we spotted a possible bug in here. The transmitted The above is coherent with the diagnostics messages that shows all zero apart the values of the two LSB: |
Hi @marcoaccame and @MSECode , Of course, we can fix it, but, in any case, the information put in the DEBUG message is no longer useful. Doing another work related to the study of quadrature encoder, I'm evaluating to use that message for sending encoder raw values. So, in the end, I suggest fixing it by setting the default value of the verbose parameter equal to 0. It should be set to 1 only when the autocalibration is performed or in debug session by technical people. What do you think? |
I tested again on the robot and the messages go away if I explicitly set verbose = 0. So: yes we should change the default value of
You mean that the 2foc transmits the qenc value with the |
That's good. So it was actually due to that as thought earlier. |
Yes!
Exactly... I'm evaluating this alternative option also! |
I've done a first change setting the default value for verbose to 0 in here.
Let's see uf there is something else to modify on other related repos, such as the proposal in here:
If it's ok to modify only the icub-main part relatively to this bug I'll proceed with testing phase. |
Yes, please proceed with the testing phase. |
Today w/ @valegagge, we tested the fix available in the branch mentioned above. The log file here and the screen below show that the output is as desired: |
In doing the tests for this PR:
I noticed that on
iCubGenova11
there are too many diagnostics debug messages. See picture.I analyzed the log a bit and I found out that each 2foc board emit one periodic debug message of type
PER_MC_MSG__DEBUG
every 500ms + something. See in here the code that receives from the 2foc and sends the diagnostics message to YRI.Talking to @MSECode, it may be that the 2foc emits because of some xml setting in here, maybe the verbose setting that does not appears and is 1 by default. See here.
cc @valegagge @ale-git @martinaxgloria @Nicogene
The text was updated successfully, but these errors were encountered: