#include <spatial.h>
|
void | algorithmDataHandler (const double quaternion[4], double timestamp) const |
|
virtual void | attachHandler () |
|
void | dataHandler (const double acceleration[3], const double angular_rate[3], const double magnetic_field[3], double timestamp) const |
|
virtual void | detachHandler () |
|
void | setAHRSParameters (double angularVelocityThreshold, double angularVelocityDeltaThreshold, double accelerationThreshold, double magTime, double accelTime, double biasTime) |
|
void | setAlgorithmMagnetometerGain (double magnetometer_gain) |
|
void | 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 | setDataInterval (uint32_t interval_ms) const |
|
void | setHeatingEnabled (bool heating_enabled) |
|
void | setSpatialAlgorithm (const std::string algorithm) |
|
| Spatial (int32_t serial_number, int hub_port, bool is_hub_port_device, std::function< void(const double[3], const double[3], const double[3], double)> data_handler, std::function< void(const double[4], double)> algorithm_data_handler, std::function< void()> attach_handler=nullptr, std::function< void()> detach_handler=nullptr) |
|
void | zero () const |
|
| ~Spatial () |
|
|
static void | AlgorithmDataHandler (PhidgetSpatialHandle input_handle, void *ctx, const double quaternion[4], double timestamp) |
|
static void | AttachHandler (PhidgetHandle input_handle, void *ctx) |
|
static void | DataHandler (PhidgetSpatialHandle input_handle, void *ctx, const double acceleration[3], const double angular_rate[3], const double magnetic_field[3], double timestamp) |
|
static void | DetachHandler (PhidgetHandle input_handle, void *ctx) |
|
Definition at line 41 of file spatial.h.
◆ Spatial()
phidgets::Spatial::Spatial |
( |
int32_t |
serial_number, |
|
|
int |
hub_port, |
|
|
bool |
is_hub_port_device, |
|
|
std::function< void(const double[3], const double[3], const double[3], double)> |
data_handler, |
|
|
std::function< void(const double[4], double)> |
algorithm_data_handler, |
|
|
std::function< void()> |
attach_handler = nullptr , |
|
|
std::function< void()> |
detach_handler = nullptr |
|
) |
| |
|
explicit |
◆ ~Spatial()
phidgets::Spatial::~Spatial |
( |
| ) |
|
◆ algorithmDataHandler()
void phidgets::Spatial::algorithmDataHandler |
( |
const double |
quaternion[4], |
|
|
double |
timestamp |
|
) |
| const |
◆ AlgorithmDataHandler()
void phidgets::Spatial::AlgorithmDataHandler |
( |
PhidgetSpatialHandle |
input_handle, |
|
|
void * |
ctx, |
|
|
const double |
quaternion[4], |
|
|
double |
timestamp |
|
) |
| |
|
staticprivate |
◆ attachHandler()
void phidgets::Spatial::attachHandler |
( |
| ) |
|
|
virtual |
◆ AttachHandler()
void phidgets::Spatial::AttachHandler |
( |
PhidgetHandle |
input_handle, |
|
|
void * |
ctx |
|
) |
| |
|
staticprivate |
◆ dataHandler()
void phidgets::Spatial::dataHandler |
( |
const double |
acceleration[3], |
|
|
const double |
angular_rate[3], |
|
|
const double |
magnetic_field[3], |
|
|
double |
timestamp |
|
) |
| const |
◆ DataHandler()
void phidgets::Spatial::DataHandler |
( |
PhidgetSpatialHandle |
input_handle, |
|
|
void * |
ctx, |
|
|
const double |
acceleration[3], |
|
|
const double |
angular_rate[3], |
|
|
const double |
magnetic_field[3], |
|
|
double |
timestamp |
|
) |
| |
|
staticprivate |
◆ detachHandler()
void phidgets::Spatial::detachHandler |
( |
| ) |
|
|
virtual |
◆ DetachHandler()
void phidgets::Spatial::DetachHandler |
( |
PhidgetHandle |
input_handle, |
|
|
void * |
ctx |
|
) |
| |
|
staticprivate |
◆ setAHRSParameters()
void phidgets::Spatial::setAHRSParameters |
( |
double |
angularVelocityThreshold, |
|
|
double |
angularVelocityDeltaThreshold, |
|
|
double |
accelerationThreshold, |
|
|
double |
magTime, |
|
|
double |
accelTime, |
|
|
double |
biasTime |
|
) |
| |
◆ setAlgorithmMagnetometerGain()
void phidgets::Spatial::setAlgorithmMagnetometerGain |
( |
double |
magnetometer_gain | ) |
|
◆ setCompassCorrectionParameters()
void phidgets::Spatial::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 |
|
) |
| |
◆ setDataInterval()
void phidgets::Spatial::setDataInterval |
( |
uint32_t |
interval_ms | ) |
const |
◆ setHeatingEnabled()
void phidgets::Spatial::setHeatingEnabled |
( |
bool |
heating_enabled | ) |
|
◆ setSpatialAlgorithm()
void phidgets::Spatial::setSpatialAlgorithm |
( |
const std::string |
algorithm | ) |
|
◆ zero()
void phidgets::Spatial::zero |
( |
| ) |
const |
◆ algorithm_data_handler_
std::function<void(const double quaternion[4], double)> phidgets::Spatial::algorithm_data_handler_ |
|
private |
◆ attach_handler_
std::function<void()> phidgets::Spatial::attach_handler_ |
|
private |
◆ data_handler_
std::function<void(const double[3], const double[3], const double[3], double)> phidgets::Spatial::data_handler_ |
|
private |
◆ detach_handler_
std::function<void()> phidgets::Spatial::detach_handler_ |
|
private |
◆ spatial_handle_
PhidgetSpatialHandle phidgets::Spatial::spatial_handle_ {nullptr} |
|
private |
The documentation for this class was generated from the following files: