[wpilib] SendableBuilder: Make GetTable() visible

This commit is contained in:
Peter Johnson
2020-10-26 00:15:21 -07:00
parent c11d34b26c
commit 8cd42478e1
4 changed files with 18 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -13,10 +13,17 @@ import java.util.function.DoubleConsumer;
import java.util.function.DoubleSupplier;
import java.util.function.Supplier;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableValue;
public interface SendableBuilder {
/**
* Get the network table.
* @return The network table
*/
NetworkTable getTable();
/**
* Set the string representation of the named data type that will be used
* by the smart dashboard for this sendable.

View File

@@ -74,6 +74,7 @@ public class SendableBuilderImpl implements SendableBuilder {
*
* @return The network table
*/
@Override
public NetworkTable getTable() {
return m_table;
}