android - How I receive sensors data in batching mode? -


i didn't program sensors apps yet, read batching (in kitkat) , wonder how should data.

i found in sensors header file (line 1083):

all events since previous batch recorded , returned all @ once

but according api have 1 x, y, z receive data (and not list or array).

from api:

/**  * sensor event data  */ typedef struct {     union {         float v[3];         struct {             float x;             float y;             float z;         };         struct {             float azimuth;             float pitch;             float roll;         };     };     int8_t status;     uint8_t reserved[3]; } sensors_vec_t; 

so didn't understand if should receive data @ once or it's refers hw layer , i, in sw layer should receive data 1 one (by way events) – if yes latency, , delay between events ?

thanks

after reading batch section again think hava answer: sensors data in batching mode saves in fw fifo. it's meaning sensors samples done. left transfer data sw. it's performs events, probablly without delay (one one). (so not delay should between events , latency depnded fw..)

if think wrong please let me know, thank you


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -