Dear Pd-list,
I am trying to get a Razor AHRS sensor to work with Pd using its comport external. This sensor sends three angles (yaw, pitch, roll). Each of these angles is said to be sent as a 4 byte (single precision) float value.
This float value arrives in Pd from comport's outlet as three values 0-255. The byte order is little-endian.
I understand that a 4byte single precision float has a 1bit sign, an 8bit exponent and a 23bit mantissa.
After five hours of trying I am wondering how I could convert this number into a Pd float.
I would be delighted to receive any pointers as I have run out of ideas by now.
thank you so much! P