API for the uORB lightweight object broker.
void set_device_type(uint8_t devtype)
void set_error_count(uint64_t error_count)
matrix::Vector3f _calibration_scale
int _class_device_instance
static int32_t device_id[max_accel_sens]
High-resolution timer with callouts and timekeeping.
void set_external(bool external)
uORB::PublicationMultiData< sensor_mag_s > _sensor_mag_pub
Abstract class for any character device.
void set_sensitivity(float x, float y, float z)
void set_temperature(float temperature)
void update(hrt_abstime timestamp, int16_t x, int16_t y, int16_t z)
Rotation
Enum for board and external compass rotations.
matrix::Vector3f _sensitivity
matrix::Vector3f _calibration_offset
int ioctl(cdev::file_t *filp, int cmd, unsigned long arg) override
Perform an ioctl operation on the device.
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
~PX4Magnetometer() override
void set_scale(float scale)
PX4Magnetometer(uint32_t device_id, uint8_t priority, enum Rotation rotation)