From 58061f985a8d908df3b3a5b6378d1c1cd5aefea7 Mon Sep 17 00:00:00 2001 From: JongChern Date: Tue, 28 Jan 2025 12:05:56 +0800 Subject: [PATCH] update --- ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs | 2 +- .../ShimmerCapture/UserControlGeneralConfig.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs b/ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs index ced3f3d..7de9dce 100644 --- a/ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs +++ b/ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs @@ -6632,7 +6632,7 @@ public virtual bool packetTimeStampChecker(int timeStamp2, int timeStamp1) /// - /// This sets the Gyroscope on the Shimmer3 to low power mode, where in low power mode the internal sampling rate of the Gyroscope is reduced to 31.25Hz + /// This sets the Gyroscope on the Shimmer3 to low power mode, where in low power mode the internal sampling rate of the Gyroscope is reduced to 31.25Hz. Note for the 3R both the Gyro and LN Accel is set to low power mode. For the 3R low power mode results in a sampling rate of 1.875Hz /// /// Set to true to enable public void SetLowPowerGyro(bool enable) diff --git a/ShimmerCapture/ShimmerCapture/UserControlGeneralConfig.cs b/ShimmerCapture/ShimmerCapture/UserControlGeneralConfig.cs index 6294c12..a0cb6a5 100644 --- a/ShimmerCapture/ShimmerCapture/UserControlGeneralConfig.cs +++ b/ShimmerCapture/ShimmerCapture/UserControlGeneralConfig.cs @@ -447,6 +447,16 @@ private void ConfigSetup() checkBoxGyroOnTheFly.Enabled = true; checkBoxLowPowerAccel.Enabled = true; checkBoxLowPowerGyro.Enabled = true; + if (PConfiguration.PControlForm.ShimmerDevice.GetShimmerVersion() == (int)ShimmerBluetooth.ShimmerVersion.SHIMMER3) + { + checkBoxLowPowerGyro.Text = "Enable Gyro LP Mode"; + } else if (PConfiguration.PControlForm.ShimmerDevice.GetShimmerVersion() == (int)ShimmerBluetooth.ShimmerVersion.SHIMMER3R) + { + checkBoxLowPowerGyro.Text = "Enable LN Accel and Gyro LP Mode"; + } + + + //if (PConfiguration.PControlForm.ShimmerDevice.GetFirmwareVersion() > 0.1 || PConfiguration.PControlForm.ShimmerDevice.GetFirmwareInternal() >= 5) // gsr only supported from BTStream 0.1.5 onwards. if (PConfiguration.PControlForm.ShimmerDevice.GetFirmwareIdentifier() == ShimmerBluetooth.FW_IDENTIFIER_LOGANDSTREAM //|| PConfiguration.PControlForm.ShimmerDevice.GetFirmwareVersion() > 0.1 || PConfiguration.PControlForm.ShimmerDevice.GetFirmwareInternal() >= 5) // gsr only supported from BTStream 0.1.5 onwards.