Go to the documentation of this file.
30 #ifndef PHIDGETS_API_MAGNETOMETER_H
31 #define PHIDGETS_API_MAGNETOMETER_H
35 #include <libphidget22/phidget22.h>
47 int32_t serial_number,
int hub_port,
bool is_hub_port_device,
48 std::function<
void(
const double[3],
double)> data_handler);
53 double cc_offset1,
double cc_offset2,
54 double cc_gain0,
double cc_gain1,
55 double cc_gain2,
double cc_T0,
56 double cc_T1,
double cc_T2,
57 double cc_T3,
double cc_T4,
61 double ×tamp)
const;
65 void dataHandler(
const double magnetic_field[3],
double timestamp)
const;
71 static void DataHandler(PhidgetMagnetometerHandle input_handle,
void *ctx,
72 const double magnetic_field[3],
double timestamp);
77 #endif // PHIDGETS_API_MAGNETOMETER_H
PhidgetMagnetometerHandle mag_handle_
static void DataHandler(PhidgetMagnetometerHandle input_handle, void *ctx, const double magnetic_field[3], double timestamp)
void setDataInterval(uint32_t interval_ms) const
std::function< void(const double[3], double)> data_handler_
void getMagneticField(double &x, double &y, double &z, double ×tamp) const
void dataHandler(const double magnetic_field[3], double timestamp) const
Magnetometer(int32_t serial_number, int hub_port, bool is_hub_port_device, std::function< void(const double[3], double)> data_handler)
#define PHIDGET22_NO_COPY_NO_MOVE_NO_ASSIGN(Classname)
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)
phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Sun May 11 2025 02:20:27