Check if command exceeds opening limits also for single side controller.

Also, error fixed for the trapezoidal controller
Merge pull request #19 from corot/min_max_opening_patch

Check if command exceeds opening limits also for single side controller.