Package frc.team88.swerve.tuning
Class TuningManager
- java.lang.Object
-
- frc.team88.swerve.tuning.TuningManager
-
- All Implemented Interfaces:
NetworkTablePopulator
public class TuningManager extends java.lang.Object implements NetworkTablePopulator
Manages the running of the available tuning modes.
-
-
Constructor Summary
Constructors Constructor Description TuningManager(Configuration config)
Constructs a tuning manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Get if there is currently a tuning mode active.void
populateNetworkTable(edu.wpi.first.networktables.NetworkTable table)
Populates the given network table with data from this class.void
update()
Checks for changes in the currently active tuning mode, then runs it if there is one.
-
-
-
Constructor Detail
-
TuningManager
public TuningManager(Configuration config)
Constructs a tuning manager.- Parameters:
config
- The config for this swerve drive.
-
-
Method Detail
-
update
public void update()
Checks for changes in the currently active tuning mode, then runs it if there is one.
-
isEnabled
public boolean isEnabled()
Get if there is currently a tuning mode active.- Returns:
- True if a tuning mode is currently active, false otherwise.
-
populateNetworkTable
public void populateNetworkTable(edu.wpi.first.networktables.NetworkTable table)
Description copied from interface:NetworkTablePopulator
Populates the given network table with data from this class. May also read in values.- Specified by:
populateNetworkTable
in interfaceNetworkTablePopulator
- Parameters:
table
- The table to populate, and possibly read from.
-
-