Skip to content

Conversation

rishiso
Copy link
Contributor

@rishiso rishiso commented Apr 9, 2025

Description

Making angle rotation more precise when robot is shooting at further target

Associated / Resolved Issue

Related to ClickUp card

Steps to Test

  1. Make every robot but one solo offense
  2. Try taking shots from different distances

Expected result: Should not miss (as much)

automated style fixes

Co-authored-by: rishiso <rishiso@users.noreply.github.com>
Copy link

@Copilot 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.

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

Comments suppressed due to low confidence (1)

soccer/src/soccer/planning/planner/rotate_path_planner.hpp:50

  • [nitpick] The variable name 'kIsDoneAngleChangeThresh' implies a constant value. Consider renaming it to something like 'isDoneAngleChangeThresh_' to indicate its dynamic nature.
double kIsDoneAngleChangeThresh{1.0};

Copy link
Contributor

@sanatd33 sanatd33 left a comment

Choose a reason for hiding this comment

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

lgtm

@rishiso rishiso requested a review from Copilot April 9, 2025 01:46
Copy link

@Copilot 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.

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

Comments suppressed due to low confidence (1)

soccer/src/soccer/planning/planner/rotate_path_planner.hpp:50

  • [nitpick] Since the variable is mutable now, consider renaming it to remove the 'k' prefix to avoid suggesting it is a constant.
double kIsDoneAngleChangeThresh{1.0};

@rishiso rishiso force-pushed the dynamic-rotate-threshold branch from 310407a to a50a317 Compare April 9, 2025 01:51
@rishiso rishiso requested a review from Copilot April 9, 2025 01:52
Copy link

@Copilot 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.

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

Comments suppressed due to low confidence (1)

soccer/src/soccer/planning/planner/rotate_path_planner.hpp:50

  • [nitpick] The name 'isDoneAngleChangeThresh' might be misleading now that the value is dynamic; consider renaming it to 'dynamicAngleThreshold' for better clarity.
double isDoneAngleChangeThresh{1.0};

@rishiso rishiso merged commit a577bbd into ros2 Apr 9, 2025
2 checks passed
@rishiso rishiso deleted the dynamic-rotate-threshold branch April 9, 2025 02:59
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