DSMx drivers,added autodetection of channel resolution

Credit goes to Mathieu Rondonneau from the OpenPilot project.
Changeset:1c6ac29
this is also really bad practice when we have global devices around. i'll work on this too.