lowerleg_func.h
Go to the documentation of this file.
00001 #ifndef _LOWERLEG_FUNC_H
00002 #define _LOWERLEG_FUNC_H
00003 
00004 
00005 //#include<string>
00006 /*
00007 #include "cmtdef.h"
00008 #include "xsens_time.h"
00009 #include "xsens_list.h"
00010 #include "cmtscan.h"
00011 
00012 #include "cmt3.h"
00013 */
00014 
00015 #include "lowerleg_struct.h"
00016 
00017 using namespace std; 
00018 
00019 int read_leg(char *filename, tibia &tib, femur &fem, vector<vector<double> > &frame_refs);
00020 
00045 int read_tibia(FILE *fp, tibia &tib);
00046 
00073 int read_femur(FILE *fp, femur &fem);
00074 
00075 
00082 int read_collar(FILE *fp,collar& col);
00083 
00087 int read_LINK(FILE *fp,LINK& lnk);
00088 
00097 void set_LINK_id(tibia& tib);
00098 
00099 
00106 int read_sensor(FILE *fp,sensor& snsr);
00107 
00108 
00109 int read_optional(FILE *fp, collar_info& col_info);
00110 
00111 int read_external(FILE *fp,external_info& extrn_data);
00112 
00116 int conv_accl_id(int accl_id);
00117 
00118 int read_frame_refs(FILE *fp,vector<vector<double> > &frame_refs);
00119 
00120 int get_act_pos(tibia &tibmeasure, femur &femmeasure, vector<vector<double> > &data_v, int userQuit,unsigned int *act_tib, unsigned int *act_fem);
00121 int get_act_pos_encaps(leg *legdata);
00122 int write_act_pos_epi(FILE *fp, vector<vector<double> > datapoints);
00123 //int start_active_prol(leg *legdata, unsigned int* act);
00124 int start_active_prol(tibia tibmeasure,femur femmeasure, unsigned int* act_tib, unsigned int* act_fem);
00125 //int  write_active_headers(leg legdata,char *datestr,char* file);
00126 int  write_active_headers(FILE* filep_act,tibia tib, femur fem,char *datestr,char* file);
00127 
00128 #endif
 All Data Structures Files Functions Variables Typedefs Defines