DSMx drivers,added autodetection of channel resolution

Credit goes to Mathieu Rondonneau from the OpenPilot project.
Changeset:1c6ac29
This has a small risk of an infinite recursion. If you don't mind, I might try and factor the common code into a library and add some units tests.