load_accl_data.cpp File Reference

Load Accelerometer Data for Postprocessing. More...

#include "postprocess.h"
Include dependency graph for load_accl_data.cpp:
This graph shows which files directly or indirectly include this file:

Functions

int load_accl_data (char *filename, int num_accls, int num_accl_entries, vector< vector< double > > &datapoints)
 Load Accelerometer Data for Postprocessing.

Detailed Description

Load Accelerometer Data for Postprocessing.


Function Documentation

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.

Parameters:
[in]filenameName of the file where readings have been stored.
[in]num_acclsNumber of accelerometer readings in the file.
[in]num_accl_entriesNumber 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]datapointsThe 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().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines