fix value reading, only real32 was correct.
change to qt type
remove duplicate code
Merge pull request #629 from treymarc/mav_type

fix value reading, only real32 was correct.