From cb05f7c0f7b31bdcbfd15581076f400c4e7ad3e8 Mon Sep 17 00:00:00 2001 From: jonnew Date: Wed, 21 Aug 2024 12:46:45 -0400 Subject: [PATCH] Update Bno055CalibrationFlags - The possible calibration flags were only partially defined. --- OpenEphys.Onix1/Bno055DataFrame.cs | 61 ++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/OpenEphys.Onix1/Bno055DataFrame.cs b/OpenEphys.Onix1/Bno055DataFrame.cs index c2bbd916..f21364f4 100644 --- a/OpenEphys.Onix1/Bno055DataFrame.cs +++ b/OpenEphys.Onix1/Bno055DataFrame.cs @@ -115,21 +115,66 @@ public enum Bno055CalibrationFlags : byte /// Specifies that no sub-system is calibrated. /// None = 0, + + /// + /// Specifies that the magnetometer is poorly calibrated. + /// + MagnetometerLow = 0b0000_0001, + /// - /// Specifies all three sub-systems (gyroscope, accelerometer, and magnetometer) along with sensor fusion are calibrated. + /// Specifies that the magnetometer is partially calibrated. /// - System = 0x3, + MagnetometerMed = 0b0000_0010, + /// - /// Specifies that the gyroscope is calibrated. + /// Specifies that the magnetometer is fully calibrated. /// - Gyroscope = 0xC, + MagnetometerFull = 0b0000_0011, + /// - /// Specifies that the accelerometer is calibrated. + /// Specifies that the accelerometer is poorly calibrated. /// - Accelerometer = 0x30, + AccelerometerLow = 0b0000_0100, + /// - /// Specifies that the magnetometer is calibrated. + /// Specifies that the accelerometer is partially calibrated. /// - Magnetometer = 0xC0 + AccelerometerMed = 0b0000_1000, + + /// + /// Specifies that the accelerometer is fully calibrated. + /// + AccelerometerFull = 0b0000_1100, + + /// + /// Specifies that the gyroscope is poorly calibrated. + /// + GyroscopeLow = 0b0001_0000, + + /// + /// Specifies that the gyroscope is partially calibrated. + /// + GyroscopeMed = 0b0010_0000, + + /// + /// Specifies that the gyroscope is fully calibrated. + /// + GyroscopeFull = 0b0011_0000, + + /// + /// Specifies that sensor fusion is poorly calibrated. + /// + SystemLow = 0b0100_0000, + + /// + /// Specifies that sensor fusion is partially calibrated. + /// + SystemMed = 0b1000_0000, + + /// + /// Specifies that sensor fusion is fully calibrated. + /// + SystemFull = 0b1100_0000, + } }