Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX_M8Q_Capture EthernetInterface FXOS8700Q SDFileSystem eCompass_FPU_Lib mbed-rtos mbed
meta.h
- Committer:
- rlinnmoran
- Date:
- 2015-03-27
- Revision:
- 0:77857a36b4ff
- Child:
- 2:bcd60a69583f
File content as of revision 0:77857a36b4ff:
#ifndef META_H_
#define META_H_
#include "MAX_M8Q.h"
#include "eCompass_Lib.h"
#define _FILENAME "metaData.csv"
extern axis6_t axis6; // Structure containing 6axis data
extern gpsinfo_t gpsinfo; // Structure containing GPS data
class MetaData
{
public:
MetaData();
//####need destructor
void outputToCVSstring(void); // Format all captured data into CVS format
void appendSDcard(void); // Write the captured data into the end of the file
protected:
void capture6Axis( axis6_t* ); // Capture data from 6Axis sensor
void captureGPS( gpsinfo_t* ); // Capture data from GPS sensor
char CSVOutput[500]; // Output buffer for CSV data
double lat; // GPS Latitude (deg)
double lng; // GPS Longitude (deg)
double alt; // GPS Altitude (m)
char NS; // GPS NS indicator
char EW; // GPS EW indicator
double spd; // GPS Speed (kmph)
double utc; // GPS UTC time (hhmmss.ss)
int dte; // GPS Date (ddmmyy)
int roll, pitch, yaw; // Roll, Pitch, Yaw and Compass from the eCompass algorithm
float fGax, fGay, fGaz; // Accelerometer data converted to G's
float fUTmx, fUTmy, fUTmz; // Magnetometer data converted to UT's
float q0, q1, q2, q3; // Data from Quaternion converted to floating point
};
#endif