Пример #1
0
 /// <summary>
 /// Writes <see cref="QuaternionData"/> to quaternion, rotation matrix and Euler angles CSV files. Will create new files if required.
 /// </summary>
 /// <param name="quaternionData">
 /// x-IMU quaternion data.
 /// </param>
 public void WriteQuaternionData(QuaternionData quaternionData)
 {
     WriteCSVlineAtFileIndex(quaternionData.ConvertToCSVstring(), FileIndexes.Quaternion);
     WriteCSVlineAtFileIndex(quaternionData.ConvertToRotationMatrixCSVstring(), FileIndexes.RotationMatrix);
     WriteCSVlineAtFileIndex(quaternionData.ConvertToEulerAnglesCSVstring(), FileIndexes.EulerAngles);
     PacketsWrittenCounter.QuaternionDataPackets++;
 }
Пример #2
0
 /// <summary>
 /// Writes <see cref="QuaternionData"/> to quaternion, rotation matrix and Euler angles CSV files. Will create new files if required.
 /// </summary>
 /// <param name="quaternionData">
 /// x-IMU quaternion data.
 /// </param>
 public void WriteQuaternionData(QuaternionData quaternionData)
 {
     WriteCSVlineAtFileIndex(quaternionData.ConvertToCSVstring(), FileIndexes.Quaternion);
     WriteCSVlineAtFileIndex(quaternionData.ConvertToRotationMatrixCSVstring(), FileIndexes.RotationMatrix);
     WriteCSVlineAtFileIndex(quaternionData.ConvertToEulerAnglesCSVstring(), FileIndexes.EulerAngles);
     PacketsWrittenCounter.QuaternionDataPackets++;
 }