Skip to content

Publish battery state message - #4

Open
HansRobo wants to merge 3 commits into
ros2from
battery
Open

HansRobo wants to merge 3 commits into
ros2from
battery

Conversation

@HansRobo

@HansRobo HansRobo commented Apr 5, 2025

Copy link
Copy Markdown
Owner

No description provided.

@HansRobo
HansRobo requested a review from Copilot April 5, 2025 06:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread scripts/dualsense_driver.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HansRobo
HansRobo requested a review from Copilot April 5, 2025 06:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

scripts/dualsense_driver.py:78

  • Consider adding unit tests for get_battery_state_msg to verify the correct voltage assignments and state translations across the defined thresholds.
def get_battery_state_msg(self):

Comment thread scripts/dualsense_driver.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HansRobo
HansRobo requested a review from Copilot April 5, 2025 06:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

scripts/dualsense_driver.py:75

  • Consider adding unit tests for the get_battery_state_msg function to ensure that the battery state mapping (including voltage thresholds) behaves as expected.
self.battery_pub.publish(self.get_battery_state_msg())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants