You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openEarable.sensorManager.subscribeOnSensorDataReceived((sensorData) => {
switch (sensorData.sensorId) {
case 0: // Assuming sensorId 0 is the accelerometer, gyroscope, and magnetometer combined data
var acc_x = sensorData.ACC.X;
var acc_y = sensorData.ACC.Y;
var acc_z = sensorData.ACC.Z;
var gyr_x = -sensorData.GYRO.X;
var gyr_y = sensorData.GYRO.Z;
var gyr_z = sensorData.GYRO.Y;
var mag_x = -sensorData.MAG.X;
var mag_y = sensorData.MAG.Z;
var mag_z = sensorData.MAG.Y;
var acc = [acc_x, acc_y, acc_z];
var gyro = [gyr_x, gyr_y, gyr_z];
var mag = [mag_x, mag_y, mag_z];
updateChart('accelerometerChart', acc);
updateChart('gyroscopeChart', gyro);
updateChart('magnetometerChart', mag);
...
Negation of X-axes when data is exported (RecordingManager)
Negation of gyr_x, mag_x when updating charts (ChartManager)
Are these negations intentional?
The text was updated successfully, but these errors were encountered:
RecordingManager.js:
ChartManager.js:
Negation of X-axes when data is exported (RecordingManager)
Negation of gyr_x, mag_x when updating charts (ChartManager)
Are these negations intentional?
The text was updated successfully, but these errors were encountered: