private void ExecuteCommand( TeRKIceLib.MotorCommand command )
{
// check controller
if ( motorController == null )
{
throw new NotConnectedException( "Qwerk's service is not connected." );
}
try
{
// execute motors' command
motorController.execute( command );
}
catch
{
throw new ConnectionLostException( "Connection is lost." );
}
}
}