Skip to content

Commit cb05f7c

Browse files
committed
Update Bno055CalibrationFlags
- The possible calibration flags were only partially defined.
1 parent 6215d8d commit cb05f7c

File tree

1 file changed

+53
-8
lines changed

1 file changed

+53
-8
lines changed

OpenEphys.Onix1/Bno055DataFrame.cs

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,66 @@ public enum Bno055CalibrationFlags : byte
115115
/// Specifies that no sub-system is calibrated.
116116
/// </summary>
117117
None = 0,
118+
119+
/// <summary>
120+
/// Specifies that the magnetometer is poorly calibrated.
121+
/// </summary>
122+
MagnetometerLow = 0b0000_0001,
123+
118124
/// <summary>
119-
/// Specifies all three sub-systems (gyroscope, accelerometer, and magnetometer) along with sensor fusion are calibrated.
125+
/// Specifies that the magnetometer is partially calibrated.
120126
/// </summary>
121-
System = 0x3,
127+
MagnetometerMed = 0b0000_0010,
128+
122129
/// <summary>
123-
/// Specifies that the gyroscope is calibrated.
130+
/// Specifies that the magnetometer is fully calibrated.
124131
/// </summary>
125-
Gyroscope = 0xC,
132+
MagnetometerFull = 0b0000_0011,
133+
126134
/// <summary>
127-
/// Specifies that the accelerometer is calibrated.
135+
/// Specifies that the accelerometer is poorly calibrated.
128136
/// </summary>
129-
Accelerometer = 0x30,
137+
AccelerometerLow = 0b0000_0100,
138+
130139
/// <summary>
131-
/// Specifies that the magnetometer is calibrated.
140+
/// Specifies that the accelerometer is partially calibrated.
132141
/// </summary>
133-
Magnetometer = 0xC0
142+
AccelerometerMed = 0b0000_1000,
143+
144+
/// <summary>
145+
/// Specifies that the accelerometer is fully calibrated.
146+
/// </summary>
147+
AccelerometerFull = 0b0000_1100,
148+
149+
/// <summary>
150+
/// Specifies that the gyroscope is poorly calibrated.
151+
/// </summary>
152+
GyroscopeLow = 0b0001_0000,
153+
154+
/// <summary>
155+
/// Specifies that the gyroscope is partially calibrated.
156+
/// </summary>
157+
GyroscopeMed = 0b0010_0000,
158+
159+
/// <summary>
160+
/// Specifies that the gyroscope is fully calibrated.
161+
/// </summary>
162+
GyroscopeFull = 0b0011_0000,
163+
164+
/// <summary>
165+
/// Specifies that sensor fusion is poorly calibrated.
166+
/// </summary>
167+
SystemLow = 0b0100_0000,
168+
169+
/// <summary>
170+
/// Specifies that sensor fusion is partially calibrated.
171+
/// </summary>
172+
SystemMed = 0b1000_0000,
173+
174+
/// <summary>
175+
/// Specifies that sensor fusion is fully calibrated.
176+
/// </summary>
177+
SystemFull = 0b1100_0000,
178+
134179
}
135180
}

0 commit comments

Comments
 (0)