protected virtual void OnRawInertialAndMagneticDataRead(RawInertialAndMagneticData e) { if (RawInertialAndMagneticDataRead != null) { RawInertialAndMagneticDataRead(this, e); } }
protected virtual void OnRawInertialAndMagneticDataReceived(RawInertialAndMagneticData e) { if (RawInertialAndMagneticDataReceived != null) RawInertialAndMagneticDataReceived(this, e); }
/// <summary> /// Writes <see cref="RawInertialAndMagneticData"/> to CSV file. Will create new file if required. /// </summary> /// <param name="rawInertialAndMagneticData"> /// x-IMU raw inertial/magnetic data. /// </param> public void WriteRawInertialAndMagneticData(RawInertialAndMagneticData rawInertialAndMagneticData) { WriteCSVlineAtFileIndex(rawInertialAndMagneticData.ConvertToCSVstring(), FileIndexes.RawInertialAndMag); PacketsWrittenCounter.RawInertialAndMagneticDataPackets++; }