Raw datatypes

Post Reply
cnolan
Posts: 4
Joined: Wed Aug 26, 2020 6:54 am

Raw datatypes

Post by cnolan »

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)?
User avatar
James
Site Admin
Posts: 1109
Joined: Wed Jan 02, 2013 9:06 pm

Re: Raw datatypes

Post by James »

cnolan
Posts: 4
Joined: Wed Aug 26, 2020 6:54 am

Re: Raw datatypes

Post by cnolan »

Interesting. The protocol buffer spec does seem odd, but I assumed that accelerometer data would use Datatype.ACCEL and the message as here:

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
}
But then there is no equivalent for gyro anyway, so I guess at least it's consistent! :)
Post Reply