Skip to content

Refactor getMatchPeriodΒ #156

@TaylerUva

Description

@TaylerUva

Can we make the strings ENUMs and then use this function in the other functions

We are doing time > 140, time>130, etc. 3 times so we should simplify

I would return the ENUM and then in other if statements do
if (getMatchPeriod == SHIFT_1) etc.

https://github.com/FRCTeam3255/2026_Robot_Code/blob/f07a3c37dac8be0698fc2a3f6f623b09af0ac331/src/main/java/frc/robot/Robot.java#L136-L253

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions