Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ public void ReadData()
bufferbyte[p] = (byte)ReadByte();

}
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_MAG_CALIBRATION_RESPONSE);
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE);

//Retrieve High G Accel Cal Paramters if Shimmer 3
bufferbyte = new byte[21];
Expand All @@ -1626,7 +1626,8 @@ public void ReadData()
bufferbyte[p] = (byte)ReadByte();

}
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE);
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_MAG_CALIBRATION_RESPONSE);

}

break;
Expand Down Expand Up @@ -2551,6 +2552,7 @@ protected void RetrieveKinematicCalibrationParametersFromPacket(byte[] bufferCal
OffsetVectorAltAccel = offsetVector;
SensitivityMatrixAltAccel = sensitivityMatrix;
DefaultHighGAccelParams = false;

}
else if (packetType == (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE && (sensitivityMatrix[0, 0] == -1 || UtilCalibration.AllElementsAre(sensitivityMatrix, 0))
&& HardwareVersion == (int)ShimmerBluetooth.ShimmerVersion.SHIMMER3R)
Expand Down
Loading