Interface InternalServoDeviceInterface

    • Method Detail

      • getServoNum

        int getServoNum()
        Get the device Servo device number
        Returns:
        Device native Servo device number
      • getPulseWidthUs

        int getPulseWidthUs()
                     throws RuntimeIOException
        Get the current Servo pulse width in microseconds.
        Returns:
        Servo pulse width value in microseconds
        Throws:
        RuntimeIOException - if an I/O error occurs
      • setPulseWidthUs

        void setPulseWidthUs​(int pulseWidthUs)
                      throws RuntimeIOException
        Set the Servo output pulse width in microseconds.
        Parameters:
        pulseWidthUs - New pulse width value in microseconds, range minPulseWidth to maxPulseWidth
        Throws:
        RuntimeIOException - if an I/O error occurs
      • getServoFrequency

        int getServoFrequency()
        Get the Servo frequency in Hz
        Returns:
        frequency in Hz
      • setServoFrequency

        void setServoFrequency​(int frequencyHz)
                        throws RuntimeIOException
        Set the Servo frequency, most servos operate at 50Hz.
        Parameters:
        frequencyHz - frequency in Hz
        Throws:
        RuntimeIOException - if an I/O error occurs