-
Notifications
You must be signed in to change notification settings - Fork 74
Disable firmware check for amc2c board #723
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
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.
Hello @LeoGori, 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!
Summary of Changes
This pull request addresses an issue where the yarprobotinterface was failing to start due to a firmware version check. The robot is currently running a firmware version greater than 3.0.4, which was causing the check to fail. To resolve this, I've disabled the firmware check by modifying the expected firmware versions in the configuration files for both the left and right arms. Specifically, I've changed the major, minor, and build parameters under the FIRMWARE group in left_arm-eb31-j4_6-mc_service.xml and right_arm-eb30-j4_6-mc_service.xml to 2 0 13 0 respectively.
Highlights
- Firmware Check: The PR disables the firmware check in the configuration files.
- Configuration Update: The expected firmware versions in the XML files for the left and right arms have been updated.
Changelog
- R1SN003/hardware/motorControl/left_arm-eb31-j4_6-mc_service.xml
- Modified the expected firmware major version from 2 to 2.
- Modified the expected firmware minor version from 3 to 0.
- Modified the expected firmware build version from 13 to 13.
- R1SN003/hardware/motorControl/right_arm-eb30-j4_6-mc_service.xml
- Modified the expected firmware major version from 2 to 2.
- Modified the expected firmware minor version from 3 to 0.
- Modified the expected firmware build version from 13 to 13.
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.
When versions clash and systems stall,
A simple tweak can fix it all.
No need to fret, no need to frown,
Just change the config, turn it around.
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
The pull request aims to disable the firmware check for the amc2c board to allow the robot to start with a firmware version greater than 3.0.4. The changes involve modifying the firmware version parameters in the XML configuration files for the left and right arms. Overall, the changes seem straightforward, but it's important to consider the implications of disabling the firmware check and whether there are alternative solutions.
Summary of Findings
- Impact of Disabling Firmware Check: Disabling the firmware check might mask potential issues related to using an unsupported firmware version. It's crucial to understand the risks associated with this approach and consider alternative solutions if possible.
- Lack of Documentation: The PR description mentions that the robot is using a firmware version greater than 3.0.4, but it doesn't provide any information about why the firmware check is failing or what the expected behavior should be. Adding more context would be helpful.
Merge Readiness
The changes address the immediate issue of preventing yarprobotinterface from starting. However, disabling the firmware check might have unintended consequences. It's recommended to investigate the root cause of the firmware check failure and consider alternative solutions before merging this PR. I am unable to approve this pull request, and other reviewers should review and approve this code before merging.
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.
Given the rush, I can accept this modification.
However, it may be probably worth considering extending it to other boards and other R1 robots, as we did for ergoCub.
If you agree, I can deal with that.
cc @randaz81
Merging in the meantime.
The robot is currently using a fw version greater than 3.0.4.
This PR disables the firmware check, otherwise yarprobotinterface will not start.