Raw datatypes
Raw datatypes
Hi again, another question regarding the protocol buffer format. When I read a .muse file written by Mind Monitor, the EEG samples come with the datatype EEG, but all others come as datatype ANNOTATION with the rest of the type information in the event_data field. This is fairly easily parsable, but I'm just wondering if this is intended behaviour when there are structures specifically for the other datatypes (e.g. accelerometer / gyro)?
Re: Raw datatypes
That's Interaxon's protocol buffer design, sorry.
https://sites.google.com/a/interaxon.ca ... data-files
https://sites.google.com/a/interaxon.ca ... e_v2.proto
https://sites.google.com/a/interaxon.ca ... data-files
https://sites.google.com/a/interaxon.ca ... e_v2.proto
Re: Raw datatypes
Interesting. The protocol buffer spec does seem odd, but I assumed that accelerometer data would use Datatype.ACCEL and the message as here:
But then there is no equivalent for gyro anyway, so I guess at least it's consistent!
Code: Select all
// Accelerometer values are stored as milli-G's
message Accelerometer {
extend MuseData {
optional Accelerometer museData = 10;
}
optional float acc1 = 1; // forward_back
optional float acc2 = 2; // up_down
optional float acc3 = 3; // left_right
}