Class PowerDistributionProperties

java.lang.Object
xbot.common.properties.PowerDistributionProperties

@Singleton public class PowerDistributionProperties extends Object
This class manages properties related to the power distribution system (PDP/PDH) for AdvantageKit logging. It allows you to set the name of the device connected to each channel on the PDP/PDH, which can be useful for identifying which devices are drawing power in your logs.
  • Constructor Details

    • PowerDistributionProperties

      @Inject public PowerDistributionProperties()
  • Method Details

    • setDeviceMapping

      public void setDeviceMapping(PDHPort channel, String deviceName)
      Sets the name of the device connected to a given channel. This is used for logging purposes in AdvantageKit.
      Parameters:
      channel - The channel on the PDP/PDH where the device is connected.
      deviceName - The name of the device to associate with that channel.