Class ServoChannelConfigAccessor

java.lang.Object
com.revrobotics.servohub.config.ServoChannelConfigAccessor

public class ServoChannelConfigAccessor extends Object
  • Constructor Details

    • ServoChannelConfigAccessor

      protected ServoChannelConfigAccessor(ServoChannel.ChannelId channelId, long servoHubHandle)
  • Method Details

    • getPulseRange

      public ServoChannelConfig.PulseRange getPulseRange()
    • getDisableBehavior

      public ServoChannelConfig.BehaviorWhenDisabled getDisableBehavior()
      Get the output power behavior when the channel is disabled.

      When the channel is enabled [ServoChannel::SetEnabled(true)], the output power to the servo follows the channel's power setting [ServoChannel::SetPowered()].

      When the channel is disabled [ServoChannel::SetEnabled(false)], the output power to the servo follows the channel's disableBehavior.

      Returns:
      The channel's disable behavior