#include <ServoChannel.h>
◆ ChannelId
| Enumerator | 
|---|
| kChannelId0  |  | 
| kChannelId1  |  | 
| kChannelId2  |  | 
| kChannelId3  |  | 
| kChannelId4  |  | 
| kChannelId5  |  | 
 
 
◆ ~ServoChannel()
      
        
          | ServoChannel::~ServoChannel  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ GetChannelId()
  
  
      
        
          | ChannelId rev::servohub::ServoChannel::GetChannelId  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get the channel ID this ServoChannel.
- Returns
 - Channel channel ID 
 
 
 
◆ GetPulseWidth()
      
        
          | int ServoChannel::GetPulseWidth  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - The pulse width applied to this channel in microseconds. 
 
 
 
◆ IsEnabled()
      
        
          | bool ServoChannel::IsEnabled  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - true if the channel is enabled; false, otherwise 
 
 
 
◆ GetCurrent()
      
        
          | double ServoChannel::GetCurrent  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - The channel's output current in Amps. 
 
 
 
◆ SetPulseWidth()
      
        
          | REVLibError ServoChannel::SetPulseWidth  | 
          ( | 
          int  | 
          pulseWidth_us | ) | 
           | 
        
      
 
Sets the servo to the desired location based on the pulse width (in microseconds)
- Parameters
 - 
  
    | [in] | pulseWidth_us | The desired pulse width in microseconds  | 
  
   
 
 
◆ SetEnabled()
Enables/Disables the servo
- Parameters
 - 
  
    | [in] | enabled | true = enabled, false = disabled  | 
  
   
 
 
◆ SetPowered()
Turns on/off the power to the servo
- Parameters
 - 
  
    | [in] | powered | true = powered on, false = powered off  | 
  
   
 
 
◆ ServoHub
◆ kNumServoChannels
  
  
      
        
          | constexpr size_t rev::servohub::ServoChannel::kNumServoChannels {6u} | 
         
       
   | 
  
staticconstexpr   | 
  
 
 
The documentation for this class was generated from the following files: