Skip to content

Commit

Permalink
Merge pull request #240 from open-ephys/issue-237
Browse files Browse the repository at this point in the history
Update Bno055CalibrationFlags
  • Loading branch information
jonnew authored Aug 22, 2024
2 parents 549771b + cb05f7c commit b7aae5e
Showing 1 changed file with 53 additions and 8 deletions.
61 changes: 53 additions & 8 deletions OpenEphys.Onix1/Bno055DataFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,66 @@ public enum Bno055CalibrationFlags : byte
/// Specifies that no sub-system is calibrated.
/// </summary>
None = 0,

/// <summary>
/// Specifies that the magnetometer is poorly calibrated.
/// </summary>
MagnetometerLow = 0b0000_0001,

/// <summary>
/// Specifies all three sub-systems (gyroscope, accelerometer, and magnetometer) along with sensor fusion are calibrated.
/// Specifies that the magnetometer is partially calibrated.
/// </summary>
System = 0x3,
MagnetometerMed = 0b0000_0010,

/// <summary>
/// Specifies that the gyroscope is calibrated.
/// Specifies that the magnetometer is fully calibrated.
/// </summary>
Gyroscope = 0xC,
MagnetometerFull = 0b0000_0011,

/// <summary>
/// Specifies that the accelerometer is calibrated.
/// Specifies that the accelerometer is poorly calibrated.
/// </summary>
Accelerometer = 0x30,
AccelerometerLow = 0b0000_0100,

/// <summary>
/// Specifies that the magnetometer is calibrated.
/// Specifies that the accelerometer is partially calibrated.
/// </summary>
Magnetometer = 0xC0
AccelerometerMed = 0b0000_1000,

/// <summary>
/// Specifies that the accelerometer is fully calibrated.
/// </summary>
AccelerometerFull = 0b0000_1100,

/// <summary>
/// Specifies that the gyroscope is poorly calibrated.
/// </summary>
GyroscopeLow = 0b0001_0000,

/// <summary>
/// Specifies that the gyroscope is partially calibrated.
/// </summary>
GyroscopeMed = 0b0010_0000,

/// <summary>
/// Specifies that the gyroscope is fully calibrated.
/// </summary>
GyroscopeFull = 0b0011_0000,

/// <summary>
/// Specifies that sensor fusion is poorly calibrated.
/// </summary>
SystemLow = 0b0100_0000,

/// <summary>
/// Specifies that sensor fusion is partially calibrated.
/// </summary>
SystemMed = 0b1000_0000,

/// <summary>
/// Specifies that sensor fusion is fully calibrated.
/// </summary>
SystemFull = 0b1100_0000,

}
}

0 comments on commit b7aae5e

Please sign in to comment.