PX4 Firmware
PX4 Autopilot Software http://px4.io
drv_accel.h File Reference

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>
Include dependency graph for drv_accel.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Accelerometer driver interface.

Definition in file drv_accel.h.

Macro Definition Documentation

◆ _ACCELIOC

#define _ACCELIOC (   _n)    (_PX4_IOC(_ACCELIOCBASE, _n))

Definition at line 70 of file drv_accel.h.

◆ _ACCELIOCBASE

#define _ACCELIOCBASE   (0x2100)

Definition at line 69 of file drv_accel.h.

◆ ACCEL_BASE_DEVICE_PATH

◆ ACCELIOCSSCALE

#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().