Package org.littletonrobotics.junction
Class LoggedPowerDistribution
java.lang.Object
org.littletonrobotics.junction.LoggedPowerDistribution
Manages logging power distribution data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggedPowerDistributionReturns the singleton instance of the power distribution logger, configuring it for the default module type and ID.static LoggedPowerDistributiongetInstance(int moduleID, PowerDistribution.ModuleType moduleType) Returns the singleton instance of the power distribution logger, configuring it for the specified module type and ID.
-
Method Details
-
getInstance
Returns the singleton instance of the power distribution logger, configuring it for the default module type and ID.- Returns:
- The singleton LoggedPowerDistribution instance.
-
getInstance
public static LoggedPowerDistribution getInstance(int moduleID, PowerDistribution.ModuleType moduleType) Returns the singleton instance of the power distribution logger, configuring it for the specified module type and ID.- Parameters:
moduleID- The CAN ID of the power distribution module.moduleType- The type of the power distribution module.- Returns:
- The singleton LoggedPowerDistribution instance.
-