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

Gyroscope driver interface. More...

#include <stdint.h>
#include <sys/ioctl.h>
#include "drv_sensor.h"
#include "drv_orb_dev.h"
#include <uORB/topics/sensor_gyro.h>
Include dependency graph for drv_gyro.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gyro_calibration_s
 gyro scaling factors; Vout = (Vin * Vscale) + Voffset More...
 

Macros

#define GYRO_BASE_DEVICE_PATH   "/dev/gyro"
 
#define _GYROIOCBASE   (0x2300)
 
#define _GYROIOC(_n)   (_PX4_IOC(_GYROIOCBASE, _n))
 
#define GYROIOCSSCALE   _GYROIOC(4)
 set the gyro scaling constants to (arg) More...
 

Detailed Description

Gyroscope driver interface.

Definition in file drv_gyro.h.

Macro Definition Documentation

◆ _GYROIOC

#define _GYROIOC (   _n)    (_PX4_IOC(_GYROIOCBASE, _n))

Definition at line 68 of file drv_gyro.h.

◆ _GYROIOCBASE

#define _GYROIOCBASE   (0x2300)

Definition at line 67 of file drv_gyro.h.

◆ GYRO_BASE_DEVICE_PATH

◆ GYROIOCSSCALE

#define GYROIOCSSCALE   _GYROIOC(4)

set the gyro scaling constants to (arg)

Definition at line 71 of file drv_gyro.h.

Referenced by sensors::VotedSensorsUpdate::applyGyroCalibration(), do_gyro_calibration(), and PX4Gyroscope::ioctl().