Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
phidgets::Imu Class Reference

#include <imu.h>

Inheritance diagram for phidgets::Imu:
Inheritance graph
[legend]

Public Member Functions

 Imu ()
 
virtual ~Imu ()
 
- Public Member Functions inherited from phidgets::Phidget
int close ()
 Close the connection to the phidget. More...
 
std::string getDeviceLabel ()
 Get the device label string. More...
 
std::string getDeviceName ()
 Get the device name string. More...
 
int getDeviceSerialNumber ()
 Get the Phidget's serial number. More...
 
std::string getDeviceType ()
 Get the device type string. More...
 
int getDeviceVersion ()
 Get the Phidget's version. More...
 
std::string getLibraryVersion ()
 Get the library version string. More...
 
int openAndWaitForAttachment (int serial_number, int timeout)
 Open a connection to a Phidget. More...
 
 Phidget ()
 
virtual ~Phidget ()
 

Protected Member Functions

virtual void dataHandler (const double acceleration[3], const double angularRate[3], const double magneticField[3], double timestamp)
 
int setCompassCorrectionParameters (double cc_mag_field, double cc_offset0, double cc_offset1, double cc_offset2, double cc_gain0, double cc_gain1, double cc_gain2, double cc_T0, double cc_T1, double cc_T2, double cc_T3, double cc_T4, double cc_T5)
 
void setDataRate (int rate)
 
void zero ()
 
- Protected Member Functions inherited from phidgets::Phidget
virtual void attachHandler ()
 
virtual void detachHandler ()
 
virtual void errorHandler (int error)
 
void init (CPhidgetHandle handle)
 
void registerHandlers ()
 

Static Private Member Functions

static int SpatialDataHandler (CPhidgetSpatialHandle spatial, void *userptr, CPhidgetSpatial_SpatialEventDataHandle *data, int count)
 

Private Attributes

CPhidgetSpatialHandle imu_handle_
 

Additional Inherited Members

- Static Public Member Functions inherited from phidgets::Phidget
static std::string getErrorDescription (int errorCode)
 Lookup the string for a CPhidget Error Code. More...
 

Detailed Description

Definition at line 8 of file imu.h.

Constructor & Destructor Documentation

phidgets::Imu::Imu ( )

Definition at line 5 of file imu.cpp.

phidgets::Imu::~Imu ( )
virtual

Definition at line 21 of file imu.cpp.

Member Function Documentation

void phidgets::Imu::dataHandler ( const double  acceleration[3],
const double  angularRate[3],
const double  magneticField[3],
double  timestamp 
)
protectedvirtual

Definition at line 51 of file imu.cpp.

int phidgets::Imu::setCompassCorrectionParameters ( double  cc_mag_field,
double  cc_offset0,
double  cc_offset1,
double  cc_offset2,
double  cc_gain0,
double  cc_gain1,
double  cc_gain2,
double  cc_T0,
double  cc_T1,
double  cc_T2,
double  cc_T3,
double  cc_T4,
double  cc_T5 
)
protected

Definition at line 61 of file imu.cpp.

void phidgets::Imu::setDataRate ( int  rate)
protected

Definition at line 25 of file imu.cpp.

int phidgets::Imu::SpatialDataHandler ( CPhidgetSpatialHandle  spatial,
void *  userptr,
CPhidgetSpatial_SpatialEventDataHandle *  data,
int  count 
)
staticprivate

Definition at line 36 of file imu.cpp.

void phidgets::Imu::zero ( )
protected

Definition at line 30 of file imu.cpp.

Member Data Documentation

CPhidgetSpatialHandle phidgets::Imu::imu_handle_
private

Definition at line 31 of file imu.h.


The documentation for this class was generated from the following files:


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Fri Apr 9 2021 02:56:02