Jake Greaves / Mbed OS AdiSense1000_V21
Revision:
25:c5bff546082f
Parent:
23:2adb6216b001
Child:
27:567abf893938
Child:
28:4eb837cd71df
--- a/spi0_adiAdxl362_config.c	Mon Jan 22 17:40:50 2018 +0000
+++ b/spi0_adiAdxl362_config.c	Wed Mar 07 00:58:50 2018 +0000
@@ -43,11 +43,10 @@
 
 ADI_SENSE_CONFIG spi0_adiAdxl362_config = {
     .versionId = { .major = 1, .minor = 4 },
-    .productId = ADI_SENSE_PRODUCT_ID_1000,
+    .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
     .adisense1000 = {
         .power = {
             .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
-            .supplyVoltage = 3.3,
         },
         .measurement = {
             .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
@@ -113,8 +112,8 @@
             [ADI_SENSE_1000_CHANNEL_ID_SPI_2] = {
                 /* Accelerometer Z-Axis (virtual channel) */
                 .enableChannel = true,
-                /* Optional adjustment applied to the raw input value from the sensor */
-                .offsetAdjustment = -100,
+                /* Optional adjustment applied to the processed measurement result */
+                .offsetAdjustment = -0.2,
                 /* Optional threshold limits applied to the processed measurement results */
                 .lowThreshold = -1.5,
                 .highThreshold = 1.5,