AForge.Robotics.TeRK.Qwerk.Servos.GetBounds C# (CSharp) Метод

GetBounds() публичный Метод

Get bounds of all servos.
No connection to Qwerk or its service. Connestion to Qwerk is lost.
public GetBounds ( ) : AForge.IntRange[]
Результат AForge.IntRange[]
            public IntRange[] GetBounds( )
            {
                // check controller
                if ( servoController == null )
                {
                    throw new NotConnectedException( "Qwerk's service is not connected." );
                }

                try
                {
                    // get servos' bounds
                    TeRKIceLib.Bounds[] nativeBounds = servoController.getBounds( );

                    IntRange[] bounds = new IntRange[Count];

                    for ( int i = 0; i < Count; i++ )
                    {
                        bounds[i] = new IntRange( nativeBounds[i].min, nativeBounds[i].max );
                    }

                    return bounds;
                }
                catch
                {
                    throw new ConnectionLostException( "Connection is lost." );
                }
            }