Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bno055CalibrationFlags #240

Merged
merged 1 commit into from
Aug 22, 2024
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
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,

}
}