Classes | Functions | Variables
phidgets_getdata_synchronous.cpp File Reference

Read data from phidget interfacekit. More...

#include "phidgets_getdata_synchronous.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>
Include dependency graph for phidgets_getdata_synchronous.cpp:

Go to the source code of this file.

Classes

class  Calibration
 
class  Pedal
 
class  Sensor
 

Functions

int CCONV CAttachHandler (CPhidgetHandle IFK, void *userptr)
 
int CCONV CDetachHandler (CPhidgetHandle IFK, void *userptr)
 
int CCONV CErrorHandler (CPhidgetHandle IFK, void *userptr, int ErrorCode, const char *unknown)
 
const ptree & empty_ptree ()
 
void get_pedal_data (PhidgetClass &pClass, vector< Pedal::Ptr > pedals, int num_pedals)
 
int main (int argc, char *argv[])
 MAIN function. More...
 
ostream & operator<< (ostream &o, Sensor::Ptr &sensor)
 
vector< Pedal::PtrreadPedalCalibration (string file_name, string &user_name, ptree &pt)
 Read data from the XML file. More...
 
void writeCalibrationFile (string file_name, const vector< Pedal::Ptr > &pedals, const string &user)
 Write the XML file for the first time. More...
 
void writeExistingCalibrationFile (string file_name, ptree &pt, const vector< Pedal::Ptr > &pedals)
 Overwrite an existing XML file. More...
 

Variables

double p1_calib_value_FSR1
 
double p1_calib_value_IR1
 
double p1_calib_value_LC1
 
double p1_value_FSR1
 
double p1_value_IR1
 
double p1_value_LC1
 
double p2_calib_value_FSR1
 
double p2_calib_value_IR1
 
double p2_calib_value_LC1
 
double p2_value_FSR1
 
double p2_value_IR1
 
double p2_value_LC1
 
double p3_calib_value_FSR1
 
double p3_calib_value_IR1
 
double p3_calib_value_LC1
 
double p3_value_FSR1
 
double p3_value_IR1
 
double p3_value_LC1
 

Detailed Description

Read data from phidget interfacekit.

This script reads the data,from the pedals, of the phidget interfacekit.

Definition in file phidgets_getdata_synchronous.cpp.

Function Documentation

int CCONV CAttachHandler ( CPhidgetHandle  IFK,
void *  userptr 
)

Definition at line 259 of file phidgets_getdata_synchronous.cpp.

int CCONV CDetachHandler ( CPhidgetHandle  IFK,
void *  userptr 
)

Definition at line 264 of file phidgets_getdata_synchronous.cpp.

int CCONV CErrorHandler ( CPhidgetHandle  IFK,
void *  userptr,
int  ErrorCode,
const char *  unknown 
)

Definition at line 269 of file phidgets_getdata_synchronous.cpp.

const ptree& empty_ptree ( )

Definition at line 97 of file phidgets_getdata_synchronous.cpp.

void get_pedal_data ( PhidgetClass pClass,
vector< Pedal::Ptr pedals,
int  num_pedals 
)

Definition at line 724 of file phidgets_getdata_synchronous.cpp.

int main ( int  argc,
char *  argv[] 
)

MAIN function.

Definition at line 755 of file phidgets_getdata_synchronous.cpp.

ostream& operator<< ( ostream &  o,
Sensor::Ptr sensor 
)

Definition at line 88 of file phidgets_getdata_synchronous.cpp.

vector<Pedal::Ptr> readPedalCalibration ( string  file_name,
string &  user_name,
ptree &  pt 
)

Read data from the XML file.

Definition at line 107 of file phidgets_getdata_synchronous.cpp.

void writeCalibrationFile ( string  file_name,
const vector< Pedal::Ptr > &  pedals,
const string &  user 
)

Write the XML file for the first time.

Definition at line 215 of file phidgets_getdata_synchronous.cpp.

void writeExistingCalibrationFile ( string  file_name,
ptree &  pt,
const vector< Pedal::Ptr > &  pedals 
)

Overwrite an existing XML file.

Definition at line 158 of file phidgets_getdata_synchronous.cpp.

Variable Documentation

double p1_calib_value_FSR1

Definition at line 50 of file phidgets_getdata_synchronous.cpp.

double p1_calib_value_IR1

Definition at line 51 of file phidgets_getdata_synchronous.cpp.

double p1_calib_value_LC1

Definition at line 49 of file phidgets_getdata_synchronous.cpp.

double p1_value_FSR1

Definition at line 54 of file phidgets_getdata_synchronous.cpp.

double p1_value_IR1

Definition at line 55 of file phidgets_getdata_synchronous.cpp.

double p1_value_LC1

Definition at line 53 of file phidgets_getdata_synchronous.cpp.

double p2_calib_value_FSR1

Definition at line 50 of file phidgets_getdata_synchronous.cpp.

double p2_calib_value_IR1

Definition at line 51 of file phidgets_getdata_synchronous.cpp.

double p2_calib_value_LC1

Definition at line 49 of file phidgets_getdata_synchronous.cpp.

double p2_value_FSR1

Definition at line 54 of file phidgets_getdata_synchronous.cpp.

double p2_value_IR1

Definition at line 55 of file phidgets_getdata_synchronous.cpp.

double p2_value_LC1

Definition at line 53 of file phidgets_getdata_synchronous.cpp.

double p3_calib_value_FSR1

Definition at line 50 of file phidgets_getdata_synchronous.cpp.

double p3_calib_value_IR1

Definition at line 51 of file phidgets_getdata_synchronous.cpp.

double p3_calib_value_LC1

Definition at line 49 of file phidgets_getdata_synchronous.cpp.

double p3_value_FSR1

Definition at line 54 of file phidgets_getdata_synchronous.cpp.

double p3_value_IR1

Definition at line 55 of file phidgets_getdata_synchronous.cpp.

double p3_value_LC1

Definition at line 53 of file phidgets_getdata_synchronous.cpp.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Mon Mar 2 2015 01:32:33