Skip to content

[wpilib] add usage reporting for op modes in DriverStation#8761

Open
zachwaffle4 wants to merge 1 commit intowpilibsuite:2027from
zachwaffle4:report-opmodes
Open

[wpilib] add usage reporting for op modes in DriverStation#8761
zachwaffle4 wants to merge 1 commit intowpilibsuite:2027from
zachwaffle4:report-opmodes

Conversation

@zachwaffle4
Copy link
Copy Markdown

title says it all tbh

Signed-off-by: Zach Harel <zach@zharel.me>
@zachwaffle4 zachwaffle4 requested a review from a team as a code owner April 12, 2026 00:21
@github-actions github-actions bot added component: wpilibj WPILib Java component: wpilibc WPILib C++ 2027 2027 target labels Apr 12, 2026
}
HAL_SetOpModeOptions(options.data(), options.size());

std::map<HAL_RobotMode, int> modeCounts;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
std::map<HAL_RobotMode, int> modeCounts;
int modeCounts[HAL_ROBOT_MODE_TEST + 1] = {0, 0, 0, 0};

Don't need a map here.

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

Labels

2027 2027 target component: wpilibc WPILib C++ component: wpilibj WPILib Java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants