From 38b92f5d4221bc9c100bfebc798cba4ef75afa97 Mon Sep 17 00:00:00 2001 From: maidnl Date: Mon, 4 Nov 2024 12:35:56 +0100 Subject: [PATCH 1/2] Added the selection of the BOSCH sensor present on the board (Only Magnetometer) --- examples/ScienceKitR2/PhysicsLabFirmware/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ScienceKitR2/PhysicsLabFirmware/config.h b/examples/ScienceKitR2/PhysicsLabFirmware/config.h index 774cf21..b70d6bb 100644 --- a/examples/ScienceKitR2/PhysicsLabFirmware/config.h +++ b/examples/ScienceKitR2/PhysicsLabFirmware/config.h @@ -45,14 +45,14 @@ void sensorsInit() { INA.alertOnBusOverVoltage(true, 5000); // Trigger alert if over 5V on bus // bmm150 - if (!BME.begin()) { - Serial.println("Failed to initialize IMU!"); + if (!BME.begin(BOSCH_MAGNETOMETER_ONLY)) { + Serial.println("Failed to initialize MAGNETOMETER!"); while (1); } // LSM6DSOX init if (!IMU_SK.begin()) { - Serial.println("Failed to initialize IMU!"); + Serial.println("Failed to initialize ACCELERATOMETER!"); while (1); } Serial.println("IMU Initialized"); From d9d02d18c8a2859684e44b879224aeb7cd7e2fea Mon Sep 17 00:00:00 2001 From: Daniele <34984733+maidnl@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:21:09 +0100 Subject: [PATCH 2/2] Update examples/ScienceKitR2/PhysicsLabFirmware/config.h Corrected typo Co-authored-by: per1234 --- examples/ScienceKitR2/PhysicsLabFirmware/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ScienceKitR2/PhysicsLabFirmware/config.h b/examples/ScienceKitR2/PhysicsLabFirmware/config.h index b70d6bb..9b1d0a4 100644 --- a/examples/ScienceKitR2/PhysicsLabFirmware/config.h +++ b/examples/ScienceKitR2/PhysicsLabFirmware/config.h @@ -52,7 +52,7 @@ void sensorsInit() { // LSM6DSOX init if (!IMU_SK.begin()) { - Serial.println("Failed to initialize ACCELERATOMETER!"); + Serial.println("Failed to initialize ACCELEROMETER!"); while (1); } Serial.println("IMU Initialized");