Class SwerveModuleData
- java.lang.Object
-
- frc.team88.swerve.data.representations.SwerveModuleData
-
- All Implemented Interfaces:
NetworkTablePopulator
public class SwerveModuleData extends java.lang.Object implements NetworkTablePopulator
Represents data from a swerve module
-
-
Constructor Summary
Constructors Constructor Description SwerveModuleData(SwerveModule module)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
populateNetworkTable(edu.wpi.first.networktables.NetworkTable table)
Populates the given network table with data from this class.
-
-
-
Constructor Detail
-
SwerveModuleData
public SwerveModuleData(SwerveModule module)
Constructor.- Parameters:
module
- The swerve module to collect data from.
-
-
Method Detail
-
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.
-
-