change mbed file
Dependencies: SDFileSystem FXOS8700Q
SensorData.h
- Committer:
- oliviab
- Date:
- 2019-03-15
- Revision:
- 2:0a80eaa64fd4
- Parent:
- 1:ea56355bccae
File content as of revision 2:0a80eaa64fd4:
#include "mbed.h" #include <string> #include "FXOS8700Q.h" #include "SDFileSystem.h" I2C i2c(PTE25, PTE24); class SensorData { public: //Constructor SensorData(); void initialise(); void run(); //Read in serial line and send it to log_data void readData(); //Read in accel and mag data void sensor_data(); //Logs data to /sd/sensors.txt void log_data(string data); string getDataString(); private: // Serial s_com(UART3_tx, UART3_rx); // tx, rx read gps in FILE *fp; SDFileSystem sd; // MOSI, MISO, SCK, CS Serial s_com; // tx, rx read gps in FXOS8700QAccelerometer acc; //access accelerometer FXOS8700QMagnetometer mag; char rca1[128]; //string rca2; string data; };