Skip to content

NetworkTablesUtil

CaedmonM edited this page Jan 12, 2026 · 4 revisions

Static Badge

Usage

import com.btwrobotics.WhatTime.frc.DashboardManagers.NetworkTablesUtil;

The NetworkTablesUtil class provides an easy way to display data on NetworkTables. It supports multiple data types with overloaded put() methods.

Methods

Put a number to NetworkTables using a key:

public static void put(String key, double value)

Put a string to the NetworkTables using a key:

public static void put(String key, String value)

Put a boolean to the NetworkTables using a key:

public static void put(String key, boolean value)

Puts a generic object to the NetworkTables with type detection and formatting:

public static void put(String key, Object value)

Example Usage

NetworkTablesUtil.put("Arm Angle", 37.5);
NetworkTablesUtil.put("Status", "Retracted");
NetworkTablesUtil.put("Intake Active", true);

Object customValue = 42;
NetworkTablesUtil.put("Custom Number", customValue);

Clone this wiki locally