@@ -178,12 +178,17 @@ being to compensate for offsets caused by static local magnetic fields.
178
178
179
179
### 2.1.2 Bound variables
180
180
181
- Three bound variables provide access to the angles in degrees:
181
+ Three bound variables provide access to the Euler angles in degrees:
182
182
183
183
1 . ` heading `
184
184
2 . ` pitch `
185
185
3 . ` roll `
186
186
187
+ Quaternion data may be accesed via the ` q ` bound variable:
188
+
189
+ 1 . ` q ` Contains ` [w, x, y, z] ` representing the normalised (unit) quaternion
190
+ ` w + xi + yj + zk ` . Quaternion data is dimensionless.
191
+
187
192
A bound variable ` beta ` controls algorithm performance. The default value may
188
193
be altered after instantiation. See [ section 5.2] ( ./README.md#52-beta ) .
189
194
@@ -197,7 +202,7 @@ North. A positive value adds to heading.
197
202
198
203
This uses the ` uasyncio ` library and is intended for applications based on
199
204
asynchronous programming. Updates are performed by a continuously running
200
- coroutine. The ` heading ` , ` pitch ` and ` roll ` values are bound variables
205
+ coroutine. The ` heading ` , ` pitch ` , ` roll ` and ` q ` values are bound variables
201
206
which may be accessed at any time with effectively zero latency. The test
202
207
program ` fusionlcd.py ` illustrates its use showing realtime data on a text
203
208
LCD display, ` fusiontest_as.py ` prints it at the REPL.
@@ -276,7 +281,12 @@ degrees.
276
281
2 . ` pitch `
277
282
3 . ` roll `
278
283
279
- A bound variable ` beta ` controls algorithm performance. The default value may
284
+ Quaternion data may be accesed via the ` q ` bound variable:
285
+
286
+ 1 . ` q ` Contains ` [w, x, y, z] ` representing the normalised (unit) quaternion
287
+ ` w + xi + yj + zk ` . Quaternion data is dimensionless.
288
+
289
+ A bound variable ` beta ` controls algorithm performance. The default value may
280
290
be altered after instantiation. See [ section 5.2] ( ./README.md#52-beta ) .
281
291
282
292
A class variable ` declination ` , defaulting to 0, enables the heading to be
0 commit comments