Package com.revrobotics.servohub.config
Class ServoHubConfig
java.lang.Object
com.revrobotics.config.BaseConfig
com.revrobotics.servohub.config.ServoHubConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class com.revrobotics.config.BaseConfig
BaseConfig.CANType
-
Field Summary
Modifier and TypeFieldDescriptionfinal ServoChannelConfig
final ServoChannelConfig
final ServoChannelConfig
final ServoChannelConfig
final ServoChannelConfig
final ServoChannelConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ServoHubConfig config) Applies settings from another ServoHubConfig to this one.apply
(ServoChannel.ChannelId channelId, ServoChannelConfig config) Applies settings from a ServoChannelConfig to this ServoHubConfig.flatten()
Methods inherited from class com.revrobotics.config.BaseConfig
apply, getParameter, getParameter, putParameter, removeParameter, removeParameter
-
Field Details
-
channel0
-
channel1
-
channel2
-
channel3
-
channel4
-
channel5
-
-
Constructor Details
-
ServoHubConfig
public ServoHubConfig()
-
-
Method Details
-
apply
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
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 toconfig
- The ServoChannelConfig to apply settings from- Returns:
- The updated ServoHubConfig for method chaining
-
flatten
- Overrides:
flatten
in classBaseConfig
-