Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
phidgets::Gyroscope Class Referencefinal

#include <gyroscope.h>

Public Member Functions

void dataHandler (const double angular_rate[3], double timestamp) const
 
void getAngularRate (double &x, double &y, double &z, double &timestamp) const
 
 Gyroscope (int32_t serial_number, int hub_port, bool is_hub_port_device, std::function< void(const double[3], double)> data_handler)
 
void setDataInterval (uint32_t interval_ms) const
 
void zero () const
 
 ~Gyroscope ()
 

Static Private Member Functions

static void DataHandler (PhidgetGyroscopeHandle input_handle, void *ctx, const double angular_rate[3], double timestamp)
 

Private Attributes

std::function< void(const double[3], double)> data_handler_
 
PhidgetGyroscopeHandle gyro_handle_
 

Detailed Description

Definition at line 41 of file gyroscope.h.

Constructor & Destructor Documentation

◆ Gyroscope()

phidgets::Gyroscope::Gyroscope ( int32_t  serial_number,
int  hub_port,
bool  is_hub_port_device,
std::function< void(const double[3], double)>  data_handler 
)
explicit

Definition at line 42 of file gyroscope.cpp.

◆ ~Gyroscope()

phidgets::Gyroscope::~Gyroscope ( )

Definition at line 65 of file gyroscope.cpp.

Member Function Documentation

◆ dataHandler()

void phidgets::Gyroscope::dataHandler ( const double  angular_rate[3],
double  timestamp 
) const

Definition at line 115 of file gyroscope.cpp.

◆ DataHandler()

void phidgets::Gyroscope::DataHandler ( PhidgetGyroscopeHandle  input_handle,
void *  ctx,
const double  angular_rate[3],
double  timestamp 
)
staticprivate

Definition at line 121 of file gyroscope.cpp.

◆ getAngularRate()

void phidgets::Gyroscope::getAngularRate ( double &  x,
double &  y,
double &  z,
double &  timestamp 
) const

Definition at line 80 of file gyroscope.cpp.

◆ setDataInterval()

void phidgets::Gyroscope::setDataInterval ( uint32_t  interval_ms) const

Definition at line 105 of file gyroscope.cpp.

◆ zero()

void phidgets::Gyroscope::zero ( ) const

Definition at line 71 of file gyroscope.cpp.

Member Data Documentation

◆ data_handler_

std::function<void(const double[3], double)> phidgets::Gyroscope::data_handler_
private

Definition at line 62 of file gyroscope.h.

◆ gyro_handle_

PhidgetGyroscopeHandle phidgets::Gyroscope::gyro_handle_
private

Definition at line 63 of file gyroscope.h.


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


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Sun May 11 2025 02:20:27