Skip to content

Add robot has_ball feedback#118

Merged
energy-in-joles merged 10 commits into
mainfrom
src24/robot-feedback
May 8, 2026
Merged

Add robot has_ball feedback#118
energy-in-joles merged 10 commits into
mainfrom
src24/robot-feedback

Conversation

@scorbett123
Copy link
Copy Markdown
Contributor

Implement has_ball feedback for the robot.

I only noticed #106 after making this, that is probably the better PR in the long run, although I'm about to go make some comments on it.

Added telop_gui.py as it's very useful for testing, if it's in the wrong place, or shouldn't be here at all, let me know and I'll move/remove it.

@scorbett123 scorbett123 added the release:patch Fixes and small tweaks to main. label Apr 15, 2026
Copilot AI review requested due to automatic review settings April 15, 2026 13:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds real-robot has_ball feedback parsing and a small Tk-based teleop GUI for manual testing, enabling RobotInfoRefiner to populate robot.has_ball from real robot feedback.

Changes:

  • Implemented RealRobotController.get_robots_responses() to parse serial feedback packets and emit RobotResponse(has_ball=...).
  • Removed the previous “read_all/placeholder” feedback handling in send_robot_commands().
  • Added a new telop_gui.py Tkinter teleop utility that displays has_ball status per robot.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 9 comments.

File Description
utama_core/team_controller/src/controllers/real/real_robot_controller.py Adds serial feedback parsing to produce RobotResponse with has_ball.
utama_core/team_controller/src/controllers/real/telop_gui.py New Tk GUI for driving robots and visualizing has_ball feedback.

Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py
Copilot AI review requested due to automatic review settings May 7, 2026 13:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Comment thread pixi.toml
Comment thread utama_core/team_controller/src/controllers/real/telop_gui.py Outdated
Copilot AI review requested due to automatic review settings May 7, 2026 13:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread pixi.toml
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Copilot AI review requested due to automatic review settings May 7, 2026 16:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py Outdated
Comment thread utama_core/team_controller/src/debug_utils/telop_gui.py
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Comment thread utama_core/team_controller/src/controllers/real/real_robot_controller.py Outdated
Copilot AI review requested due to automatic review settings May 8, 2026 00:14
@energy-in-joles energy-in-joles self-requested a review May 8, 2026 00:16
@energy-in-joles energy-in-joles merged commit 31bdbdc into main May 8, 2026
2 checks passed
@energy-in-joles energy-in-joles deleted the src24/robot-feedback branch May 8, 2026 00:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment on lines +76 to +83
while True:
# 2. Look for header
if len(self._buffer) < 1:
break

if self._buffer[0] != HEADER:
self._buffer.pop(0)
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Fixes and small tweaks to main.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants