Package com.revrobotics.servohub.config
Class ServoHubConfigAccessor
java.lang.Object
com.revrobotics.servohub.config.ServoHubConfigAccessor
-
Field Summary
Modifier and TypeFieldDescriptionAccessor for parameters relating to servo channel 0.Accessor for parameters relating to servo channel 1.Accessor for parameters relating to servo channel 2.Accessor for parameters relating to servo channel 3.Accessor for parameters relating to servo channel 4.Accessor for parameters relating to servo channel 5. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchannel
(ServoChannel.ChannelId channelId) Accessor for parameters relating to the specified servo channel.
-
Field Details
-
channel0
Accessor for parameters relating to servo channel 0. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
channel1
Accessor for parameters relating to servo channel 1. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
channel2
Accessor for parameters relating to servo channel 2. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
channel3
Accessor for parameters relating to servo channel 3. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
channel4
Accessor for parameters relating to servo channel 4. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
channel5
Accessor for parameters relating to servo channel 5. To configure these values, useServoChannelConfig
and callServoHub.configure(ServoHubConfig, ServoHub.ResetMode)
.NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
-
Constructor Details
-
ServoHubConfigAccessor
public ServoHubConfigAccessor(long servoHubHandle) Not intended for team use. Only use this if you know what you are doing!- Parameters:
servoHubHandle
-
-
-
Method Details
-
channel
Accessor for parameters relating to the specified servo channel. To configure these values, use ServoChannelConfig and call ServoHub::Configure().NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
- Parameters:
channelId
- The specific channel to access- Returns:
- The accessor for the specified servo channel
-