A data logger for the FRDM-K64F taking readings from the FXOS8700CQ accelerometer/magnometer at 200Hz.

Dependencies:   FXOS8700CQ SDFileSystem mbed

Fork of Hello_FXOS8700Q by Jim Carver

Files at this revision

API Documentation at this revision

Comitter:
JimCarver
Date:
Wed Apr 23 16:43:23 2014 +0000
Parent:
2:5f34f99b07c5
Child:
4:4b494ca218ff
Commit message:
Manually added pull request, adding support for common motion sensor class

Changed in this revision

MotionSensor.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MotionSensor.lib	Wed Apr 23 16:43:23 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/components/code/MotionSensor/#dbc8909af0eb
--- a/main.cpp	Wed Apr 23 15:45:39 2014 +0000
+++ b/main.cpp	Wed Apr 23 16:43:23 2014 +0000
@@ -5,6 +5,41 @@
 FXOS8700Q combo( PTE25, PTE24, FXOS8700CQ_SLAVE_ADDR1); // Proper Ports and I2C Address for K64F Freedom board
 Serial pc(USBTX, USBRX);
 
+/*
+int main(void) {
+    MotionSensor sensor;
+
+    sensor.sampleRate(50);
+    sensor.enable();
+    while(1)
+    {
+        if(sensor.dataReady())
+        {
+            SensorDataUnits formatted_data;            
+            sensor.getAxis(formatted_data);
+            printf(asdfadsf);
+        }
+        if(sensor.dataReady())
+        {
+            SensorDataCounts raw_data;            
+            sensor.getAxis(formatted_data);
+            printf(asdfasdf);
+        }
+        if(sensor.dataReady())
+        {
+            printf x(),y(),x());
+        }
+        if(sensor.dataReady())
+        {
+            printf(x(),y(),z());
+        }
+    }
+}
+
+*/
+
+
+
 
 int main() {
 float acc_data[3], mag_data[3];