-
Notifications
You must be signed in to change notification settings - Fork 73
Best effort execution mode for RX, DO and TX phases of ETH boards #746
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
Conversation
… (execution, safetygap, emission of some immediate or periodic diagnostics)
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.
Summary of Changes
Hello @marcoaccame, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces a new 'best effort' execution mode for the RX, DO, and TX phases of ETH boards, offering an alternative to the existing 'synchronized' mode. It also enhances logging and diagnostics capabilities to provide better insights into the execution times of these phases and the overall period, allowing for more flexible configuration and monitoring.
Highlights
- Execution Mode: Introduces a 'best effort' execution mode for RX, DO, and TX phases of ETH boards, alongside the existing 'synchronized' mode.
- Configuration Parameter: Adds a new parameter 'execution' within the 'RUNNINGMODE' group to select between 'synchronized' and 'besteffort' execution modes.
- Logging Improvements: Enhances logging capabilities with a new 'emitPERIODoverflow' parameter to detect period overflows in 'besteffort' mode and provides more detailed statistics.
- Diagnostics: Adds diagnostics for execution time of RX, DO and TX phases, including min/avg/max values and a histogram for period execution time.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
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.
Code Review
This pull request introduces a 'best effort' execution mode for ETH boards, configurable via a new execution
parameter in the XML template. It also adds several new logging and diagnostic parameters to monitor execution timing, including period overflows and statistics. The changes are well-documented with extensive comments explaining the new functionality. My review focuses on improving the clarity and correctness of these comments, as they serve as important documentation for users configuring the system.
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml
Outdated
Show resolved
Hide resolved
@martinaxgloria: here is the improved xml I told you about. |
This PR adds configurability for the best effort mode for the execution of the RX, Do and TX phases for all ETH boards and for improved logging of the execution cycle.
The new parameters, if not present, are considered by icub-main with the default values.
Associated PRs
Description
The full description of the new
best effort
mode and of how the ETH board computes measures about the execution cycles is in here:The above measures are used for both execution overflow immediate signaling or for periodic emission of execution statistics.
In here we show how to fully configure and enable / disable the emission of such diagnostics messages.
See the following.
Code Listing. Configurability of the
ETH_BOARD.RUNNINGMODE
group.Mergeability
This PR is useful only when all the associated PRs are merged but does not harm if
icub-main
is not able to parse the new params. Moreover, so far the change of xml is applied only to the template file and to the lego setup used for the tests.So, the PR can be safely merged as the first of the list of associated PRs.