Load Accelerometer Data for Postprocessing. More...
#include "postprocess.h"
Functions | |
int | load_accl_data (char *filename, int num_accls, int num_accl_entries, vector< vector< double > > &datapoints) |
Load Accelerometer Data for Postprocessing. |
Load Accelerometer Data for Postprocessing.
int load_accl_data | ( | char * | filename, |
int | num_accls, | ||
int | num_accl_entries, | ||
vector< vector< double > > & | datapoints | ||
) |
Load Accelerometer Data for Postprocessing.
This function reads the data stored by accelerometers in files and loads it into vectors containing angular acceleration, angular velocity, magnetic forces, and quaternion representation of orientation.
[in] | filename | Name of the file where readings have been stored. |
[in] | num_accls | Number of accelerometer readings in the file. |
[in] | num_accl_entries | Number of entries per accelerometer reading in the file. Generally 13 entries per reading - accls(3), velocity(3), magnetic field(3), orientation in quaternions(4) and timestamp |
[out] | datapoints | The 2d vector containing all measurement data. First column contains the timestamps. |
References accl_mario_orient(), and free_acc().
Referenced by load_collar_accl_data(), and main().