Skip to content

Conversation

AlexD717
Copy link
Member

@AlexD717 AlexD717 commented Jul 31, 2025

Task

Create penalties for overextending beyond the allowed amount.

AARD-2011

Symptom

FRC has rules for extending beyond frame perimeter, but Synthesis has no penalties to support this.

Solution

The way it currently works is the starting size is recorded on match start, and then if the robot extends beyond the starting size + allowed extension a penalty is applied. This does mean that if the robot doesn't start in frame perimeter this will not work properly. However,

  • FRC rules require you to start within frame perimeter
  • There is no way to detect where the frame perimeter actually is, without modifying the exporter and having an extra field to select the bumpers.
  • Many robots are below maximum allowed size, so assuming maximum size for all robots, wouldn't really work.

Verification

Tested with 2471 robot and moving the arm, with a custom match mode ruleset with an allowed extension of 0, and made sure that a penalty was still applied.


Before merging, ensure the following criteria are met:

  • All acceptance criteria outlined in the ticket are met.
  • Necessary test cases have been added and updated.
  • A feature toggle or safe disable path has been added (if applicable).
  • User-facing polish:
    • Ask: "Is this ready-looking?"
  • Cross-linking between Jira and GitHub:
    • PR links to the relevant Jira issue.
    • Jira ticket has a comment referencing this PR.

@AlexD717 AlexD717 self-assigned this Jul 31, 2025
@AlexD717 AlexD717 added the gameplay Relating to the playability of Synthesis label Jul 31, 2025
@AlexD717 AlexD717 marked this pull request as ready for review July 31, 2025 23:34
@AlexD717 AlexD717 requested review from a team as code owners July 31, 2025 23:34
Copy link
Member

@rutmanz rutmanz left a comment

Choose a reason for hiding this comment

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

lgtm

* 'dev' of github.com:Autodesk/synthesis: (53 commits)
  chore: fix build error
  Cleanup
  Remove any + lint
  fix(format): remaining format issues
  fix: added missing imports
  chore: formatting
  chore: restore some wrongly deleted files
  Add previous additions
  fix: merge issues
  fix: update bun lockfile
  Build Fix
  Merge Fix
  Documentation
  Linux build fix
  fix: run formatter
  refactor: add a variable.
  Update fission/package.json
  Synthesis App Icon
  Format Fix
  fix: mark schemes as customized when adding inputs
  ...
@BrandonPacewic BrandonPacewic mentioned this pull request Aug 6, 2025
@BrandonPacewic BrandonPacewic merged commit ef8121a into dev Aug 6, 2025
16 checks passed
@BrandonPacewic BrandonPacewic deleted the alexey/2011/extension-limit-penalty branch August 6, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gameplay Relating to the playability of Synthesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants