Automatic Control of a Hydraulic Canal