Skip to content

docs: add name argument to SmartDashboard.putData in AutoChooser example#1479

Open
KuaaMU wants to merge 1 commit into
SleipnirGroup:mainfrom
KuaaMU:fix/docs-smartdashboard-putdata-name
Open

docs: add name argument to SmartDashboard.putData in AutoChooser example#1479
KuaaMU wants to merge 1 commit into
SleipnirGroup:mainfrom
KuaaMU:fix/docs-smartdashboard-putdata-name

Conversation

@KuaaMU

@KuaaMU KuaaMU commented Apr 30, 2026

Copy link
Copy Markdown

Summary

Add missing name argument to SmartDashboard.putData() in the AutoChooser documentation example.

Motivation

Fixes #1446. The SmartDashboard.putData(autoChooser) call without a name argument results in the chooser being unusable from dashboards. The WPILib SmartDashboard.putData(Sendable) overload relies on the Sendable's default name, which may not be set properly for AutoChooser.

Changes

  • docs/choreolib/auto-factory.md: Changed SmartDashboard.putData(autoChooser) to SmartDashboard.putData("Auto Chooser", autoChooser) to use the explicit name overload.

Verification

The fix follows the WPILib API convention where SmartDashboard.putData(String, Sendable) is the recommended way to register sendables with a human-readable name on the dashboard.

The SmartDashboard.putData(Sendable) overload without a name argument
results in the chooser being unusable from dashboards. Use the explicit
putData(String, Sendable) overload to ensure the chooser is properly
registered with a name.

Fixes SleipnirGroup#1446
@github-actions github-actions Bot added the component: documentation Improvements or additions to documentation label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Code in Docs

1 participant