nh2 / nh2/hemokit

Formatting for Openvibe

Abierto
#4 31 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Haskell
Estrellas
32
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

```
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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.