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." );
}
}