Playing around with accelerometer and magnetometer on mbed KL46Z

Dependencies:   MAG3110 MMA8451Q PinDetect mbed TSI

Files at this revision

API Documentation at this revision

Comitter:
oliverfang
Date:
Mon Feb 10 23:37:11 2014 +0000
Parent:
15:90d4b8ddc586
Commit message:
changed lower limit of sampling rate to 0.001 for testing purposes

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 90d4b8ddc586 -r 8755d6de3b01 main.cpp
--- a/main.cpp	Mon Feb 10 23:05:04 2014 +0000
+++ b/main.cpp	Mon Feb 10 23:37:11 2014 +0000
@@ -221,7 +221,7 @@
         }
     }
     temp = strtod(cmd_val, NULL)/1000;
-    if (temp > 0.06 && strlen(cmd_val) >= 3)
+    if (temp > 0.001 && strlen(cmd_val) >= 3)
     {
         switch(*cmd_index)
         {