pyMultiWii icon indicating copy to clipboard operation
pyMultiWii copied to clipboard

Can't read sensor data

Open farmingmachine opened this issue 5 years ago • 1 comments

Hey,

I am trying to get sensor data to my Py from my sp 3 racing board (using betaflight). Unfortunately i get the following error while doing so:

unpack requires a bytes object of length 1 'utf-8' codec can't decode byte 0xfc in position 0: invalid start byte 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte 'utf-8' codec can't decode byte 0xfc in position 0: invalid start byte 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte unpack requires a bytes object of length 1 'utf-8' codec can't decode byte 0xfc in position 0: invalid start byte 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte 'utf-8' codec can't decode byte 0xfc in position 0: invalid start byte 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

I think there is an issue with reading the header in the init.py file. Would you know the reason?

Kind regards,

farmingmachine avatar Jun 10 '19 06:06 farmingmachine

I think this has to be with the fact that python 3 struct.pack() returns a binary string instead that on python 2.x which returns a string. I'm having similar issues.

maxmine11 avatar Oct 04 '19 02:10 maxmine11