35 #include <mathlib/math/filter/LowPassFilter2p.hpp> 38 #include <drivers/drv_mag.h> 41 #include <lib/cdev/CDev.hpp> 43 #include <uORB/topics/sensor_mag.h> 56 int publish(
float x,
float y,
float z,
float temperature);
58 void configure_filter(
float sample_freq,
float cutoff_freq);
70 int _orb_class_instance{-1};
72 int _class_device_instance{-1};
74 enum Rotation _rotation {ROTATION_NONE};
int ioctl(cdev::file_t *filp, int cmd, unsigned long arg) override
Perform an ioctl operation on the device.
Definition: PX4Magnetometer.cpp:87
Definitions for the generic base classes in the device framework.
Definition: PX4Magnetometer.hpp:46
mag scaling factors; Vout = (Vin * Vscale) + Voffset
Definition: drv_mag.h:56
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Definition: uORB.h:134
High-resolution timer with callouts and timekeeping.
Rotation
Enum for board and external compass rotations.
Definition: rotation.h:51
Fundamental base class for all physical drivers (I2C, SPI).
Definition: Device.hpp:65
API for the uORB lightweight object broker.
Definition: cdev_platform.hpp:20
Abstract class for any character device.
Definition: CDev.hpp:58
Definition: LowPassFilter2p.hpp:43
Definition: Device.hpp:200