PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Accelerometer driver interface. More...
#include <stdint.h>
#include <sys/ioctl.h>
#include "drv_sensor.h"
#include "drv_orb_dev.h"
#include <uORB/topics/sensor_accel.h>
Go to the source code of this file.
Classes | |
struct | accel_calibration_s |
accel scaling factors; Vout = Vscale * (Vin + Voffset) More... | |
Macros | |
#define | ACCEL_BASE_DEVICE_PATH "/dev/accel" |
#define | _ACCELIOCBASE (0x2100) |
#define | _ACCELIOC(_n) (_PX4_IOC(_ACCELIOCBASE, _n)) |
#define | ACCELIOCSSCALE _ACCELIOC(5) |
set the accel scaling constants to the structure pointed to by (arg) More... | |
Accelerometer driver interface.
Definition in file drv_accel.h.
#define _ACCELIOC | ( | _n | ) | (_PX4_IOC(_ACCELIOCBASE, _n)) |
Definition at line 70 of file drv_accel.h.
#define _ACCELIOCBASE (0x2100) |
Definition at line 69 of file drv_accel.h.
#define ACCEL_BASE_DEVICE_PATH "/dev/accel" |
Definition at line 49 of file drv_accel.h.
Referenced by do_accel_calibration(), sensors::VotedSensorsUpdate::parametersUpdate(), PX4Accelerometer::print_status(), PX4Accelerometer::PX4Accelerometer(), and PX4Accelerometer::~PX4Accelerometer().
#define ACCELIOCSSCALE _ACCELIOC(5) |
set the accel scaling constants to the structure pointed to by (arg)
Definition at line 73 of file drv_accel.h.
Referenced by sensors::VotedSensorsUpdate::applyAccelCalibration(), do_accel_calibration(), PX4Accelerometer::ioctl(), and BMA180::ioctl().