-
Notifications
You must be signed in to change notification settings - Fork 14
Description
if I have the following data, how it will transfer?
EmotivState {counter = 34, battery = 70, gyroX = 115, gyroY = -39, sensors = fromList [8769,7945,8113,8658,8455,8767,8857,8351,7744,9585,8141,8019,8177,9101], qualities = fromList [24,24,0,0,8,24,16,0,0,8,16,8,16,24]}
You should use the --format spaced option, then the data will look like this:
$ ./hemokit-dump --format spaced
48 0 646 -1636 14260 5451 6184 15047 13613 6573 15294 9075 5637 9415 8906 4214 16064 4322 0 0 0 0 0 0 0 0 0 0 0 0 0 0
128 0 288 -1082 16339 731 9041 5104 3837 6126 1916 14906 9550 2759 10431 5920 6503 14713 0 0 0 0 0 0 0 0 0 0 0 0 0 0
42 0 -1340 -1270 3461 9534 11386 15808 9507 5725 3030 12763 6679 8898 3755 13544 2893 10611 0 0 0 0 0 0 0 0 0 0 0 0 0 0
...
I am working on a python script to convert the sensor values to a format openvibe can read.
i've looked over your code, and i see that these are 16-bit ints, big endian bytes. but i am
having trouble deciphering the values you have listed here.
i see here the format is:
'counter' 'battery' 'gyroX' 'gyroY' 'sensors'
'counter' 'battery' 'gyroX' 'gyroY' 'quality?'
'counter' 'battery' 'gyroX' 'gyroY' 'sensors'
etc.
Could you please step through how you would convert one of these values back to its original value?
for example:
'counter' 48 = 0000000110000000
? = 34
i've tried studying your code, but i am not very fluent with haskell.
thank you for your time.