DSMx drivers,added autodetection of channel resolution

Credit goes to Mathieu Rondonneau from the OpenPilot project.
Changeset:1c6ac29
Yeah, confirmed for a bad data input you can get infinite recursion.