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

Fix on all Diagnostic error #471

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

MSECode
Copy link
Contributor

@MSECode MSECode commented Feb 16, 2024

Add mspassed to State::justLOST
Fix errors with service category passed, time from last contact and can mapping in canmonitor errors Fix Config constexpr, Initialize boards2report as boards2touch periodofreport params not updated to prv var
boards2report now initialized to zero as for boards2touch instead of to be re-initialized at each CANmonitor.tick() call initially set as _config.target and cleaned at CANmonitor.stop()
Now the diagnostic maps are filled correctly.
Clean boads2report when inside the check and reset periodofreport to 10 sec.

Report all fixes:

  • state justLOST e justFOUND have the mspassed, i.e. the milliseconds passed from the last moment the boards were reachable and the boards were unreachable respectively
  • boards2report are updated correctly during the touch of the boards, so that we can send the updated masks at the moment of the report
  • servicecategory passed correctly for all states
  • period of report updated in the Config constructor

Add mspassed to State::justLOST
Fix errors with service category passed, time from last contact and can mapping in canmonitor errors
Fix Config constexpr, Initialize boards2report as boards2touch
periodofreport params not updated to prv var
boards2report now initialized to zero as for boards2touch
instead of to be re-initialized at each CANmonitor.tick() call
initially set as _config.target and cleaned at CANmonitor.stop()
Now the diagnostic maps are filled correctly.
Clean boads2report when inside the check and reset periodofreport to 10 sec
@MSECode MSECode requested a review from valegagge February 16, 2024 09:39
@MSECode MSECode self-assigned this Feb 16, 2024
@MSECode MSECode marked this pull request as draft February 16, 2024 09:52
@valegagge
Copy link
Member

Hi @MSECode,
this PR is fine for me. I'm going to wait for the tests before reviewing.

Copy link
Member

@valegagge valegagge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catches!!! @MSECode already tested on a setup.

see robotology/icub-main#937

@valegagge valegagge marked this pull request as ready for review February 21, 2024 21:35
@MSECode MSECode marked this pull request as draft February 22, 2024 17:41
@MSECode
Copy link
Contributor Author

MSECode commented Feb 22, 2024

need to update new versions of the fw to have the build aligned

@MSECode
Copy link
Contributor Author

MSECode commented Feb 22, 2024

Need to update the new fw versions for the boards so that they are aligned with the build

@MSECode MSECode force-pushed the fix/diagnosticLostCANBoards branch from 14aa0f9 to 3fa8b83 Compare February 23, 2024 11:42
@MSECode MSECode marked this pull request as ready for review February 23, 2024 11:43
@marcoaccame marcoaccame merged commit 5c1d78a into robotology:devel Feb 23, 2024
@MSECode MSECode deleted the fix/diagnosticLostCANBoards branch December 13, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants