Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read sensor data #30

Open
farmingmachine opened this issue Jun 10, 2019 · 1 comment
Open

Can't read sensor data #30

farmingmachine opened this issue Jun 10, 2019 · 1 comment

Comments

@farmingmachine
Copy link

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,

@maxmine11
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants