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

ValueError: could not convert string to float: '511&511&511&511&511&232&164&0&0&0&0&0&0' #21

Open
ruchitsheth opened this issue Sep 12, 2021 · 3 comments

Comments

@ruchitsheth
Copy link

I am using the Prototype 1 Code for blender and when I am trying to run the code with a potentiometer as input, I am getting the following error

Read blend: C:\Users\Ruchit\Downloads\lucidgloves-blender-main\lucidgloves-blender-main\VRGloveDemo_Attempt2.blend
b'511&511&511&511&511&232&164&0&0&0&0&0&0\n'
Traceback (most recent call last):
File "C:\Users\Ruchit\Downloads\lucidgloves-blender-main\lucidgloves-blender-main\VRGloveDemo_Attempt2.blend\script.py", line 43, in
ValueError: could not convert string to float: '511&511&511&511&511&232&164&0&0&0&0&0&0'
Error: Python script failed, check the message in the system console

Please help ME!

@lucas-vrtech
Copy link
Member

This isn't a problem with lucidgloves firmware, rather it's something that needs to be fixed in the blender script. I'll leave this issue open to make sure I/someone fix it at some point.

@fionn77
Copy link

fionn77 commented Dec 29, 2021

in blender change this line :
lineTable = read.decode().split(',') to
lineTable = read.decode().split('&')

also check that the COM serial in line 6 is right:
ser = serial.Serial('COM4', '115200')

i had to change from COM4 to COM3

you can check which COM you need in arduino software under Tools

@CaelanTheCoder
Copy link

this can safely be closed right?

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

4 participants