AForge.Robotics.TeRK.Qwerk.Servos.GetBound C# (CSharp) Method

GetBound() public method

Get bounds for the specified servo.
Invalid servo is specified. No connection to Qwerk or its service. Connestion to Qwerk is lost.
public GetBound ( int servo ) : IntRange
servo int Servo to get bounds for, [0, ).
return AForge.IntRange
            public IntRange GetBound( int servo )
            {
                if ( ( servo < 0 ) || ( servo >= Count ) )
                {
                    throw new ArgumentOutOfRangeException( "Invalid servo is specified." );
                }

                return GetBounds( )[servo];
            }