Skip to content

Configuration

NukeMinecart edited this page Aug 29, 2025 · 10 revisions

Global Configuration

Configured once on startup if wanted

Call Dashboard.configure in Robot.robotInit if desired.

Global configuration is done with DashboardConfig.

There is only 1 option currently for configuring the default publishing of BadgerLog.

Struct options
The type of struct entries for NetworkTables. This setting will be used if no instance configuration is present.
Default: SUB_TABLE

Custom Configuration

There are 2 different ways of configuring specific aspects of BadgerLog.

Mappings allow any type to be represented as a type on NetworkTables. It converts a value to a NetworkTables valid value. To create one, implement the Mapping class, and then register it with Mappings.registerMapping. Examples at BaseMappings, TransformMappings, UnitMappings.

Custom annotation configuration is supported via the ConfigHandler system. This allows for the configuration to be modified in a consistent way. To use it, implement the ConfigHandler interface, and register it through ConfigHandlerRegistry.registerHandler.

All the per field configuration are implemented with this system, so examples can be found in the annotations package.

Clone this wiki locally