Skip to content

Commit

Permalink
Update LSM6DSV16X_Sensor_Fusion.ino
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Sep 29, 2023
1 parent a617747 commit 6950abd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions examples/LSM6DSV16X_Sensor_Fusion/LSM6DSV16X_Sensor_Fusion.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
*******************************************************************************
*/

/*
* You can display the quaternion values with a 3D model connecting for example to this link:
* https://adafruit.github.io/Adafruit_WebSerial_3DModelViewer/
*/

#include <LSM6DSV16XSensor.h>

#define ALGO_FREQ 120U /* Algorithm frequency 120Hz */
Expand Down Expand Up @@ -69,13 +75,13 @@ void loop()

// Print Quaternion data
Serial.print("Quaternion: ");
Serial.print(quaternions[3], 4);
Serial.print(-quaternions[3], 4);
Serial.print(", ");
Serial.print(-quaternions[1], 4);
Serial.print(-quaternions[0], 4);
Serial.print(", ");
Serial.print(quaternions[0], 4);
Serial.print(-quaternions[1], 4);
Serial.print(", ");
Serial.println(quaternions[2], 4);
Serial.println(-quaternions[2], 4);

// Compute the elapsed time within loop cycle and wait
elapsedTime = millis() - startTime;
Expand Down

0 comments on commit 6950abd

Please sign in to comment.