Class ServoHubConfig

java.lang.Object
com.revrobotics.config.BaseConfig
com.revrobotics.servohub.config.ServoHubConfig

public class ServoHubConfig extends BaseConfig
  • Field Details

  • Constructor Details

    • ServoHubConfig

      public ServoHubConfig()
  • Method Details

    • apply

      public ServoHubConfig apply(ServoHubConfig config)
      Applies settings from another ServoHubConfig to this one.

      Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.

      Parameters:
      config - The ServoHubConfig to apply settings from
      Returns:
      The updated ServoHubConfig for method chaining
    • apply

      public ServoHubConfig apply(ServoChannel.ChannelId channelId, ServoChannelConfig config)
      Applies settings from a ServoChannelConfig to this ServoHubConfig.

      Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.

      Parameters:
      channelId - The channel to apply the settings to
      config - The ServoChannelConfig to apply settings from
      Returns:
      The updated ServoHubConfig for method chaining
    • flatten

      public String flatten()
      Overrides:
      flatten in class BaseConfig