APM:Libraries
Macros | Variables
AP_InertialSensor_RST.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include "AP_InertialSensor_RST.h"
#include <AP_Math/AP_Math.h>
#include <inttypes.h>
#include <utility>
#include <math.h>
#include <stdio.h>
Include dependency graph for AP_InertialSensor_RST.cpp:

Go to the source code of this file.

Macros

#define ADDR_INCREMENT   (1<<6)
 
#define ACCEL_WHO_AM_I   0x0F
 
#define ACCEL_WHO_I_AM   0x32
 
#define ACCEL_CTRL_REG1   0x20
 
#define RATE_50HZ_LP_37HZ   (0<<4) | (0<<3)
 
#define RATE_100HZ_LP_74HZ   (0<<4) | (1<<3)
 
#define RATE_400HZ_LP_292HZ   (1<<4) | (0<<3)
 
#define RATE_1000HZ_LP_780HZ   (1<<4) | (1<<3)
 
#define ACCEL_CTRL_REG2   0x21
 
#define ACCEL_CTRL_REG3   0x22
 
#define ACCEL_CTRL_REG4   0x23
 
#define ACCEL_CTRL_REG5   0x24
 
#define ACCEL_HP_FILTER_RESETE   0x25
 
#define ACCEL_OUT_REFERENCE   0x26
 
#define ACCEL_STATUS_REG   0x27
 
#define ACCEL_OUT_X_L   0x28
 
#define ACCEL_OUT_X_H   0x29
 
#define ACCEL_OUT_Y_L   0x2A
 
#define ACCEL_OUT_Y_H   0x2B
 
#define ACCEL_OUT_Z_L   0x2C
 
#define ACCEL_OUT_Z_H   0x2D
 
#define ACCEL_INT1_CFG   0x30
 
#define ACCEL_INT1_SRC   0x31
 
#define ACCEL_INT1_TSH   0x32
 
#define ACCEL_INT1_DURATION   0x33
 
#define ACCEL_INT2_CFG   0x34
 
#define ACCEL_INT2_SRC   0x35
 
#define ACCEL_INT2_TSH   0x36
 
#define ACCEL_INT2_DURATION   0x37
 
#define ACCEL_REG1_POWER_NORMAL   ((0<<7) | (0<<6) | (1<<5))
 
#define ACCEL_REG1_Z_ENABLE   (1<<2)
 
#define ACCEL_REG1_Y_ENABLE   (1<<1)
 
#define ACCEL_REG1_X_ENABLE   (1<<0)
 
#define ACCEL_REG4_BDU   (1<<7)
 
#define ACCEL_REG4_BLE   (1<<6)
 
#define ACCEL_REG4_FULL_SCALE_BITS   ((1<<5) | (1<<4))
 
#define ACCEL_REG4_FULL_SCALE_2G   ((0<<5) | (0<<4))
 
#define ACCEL_REG4_FULL_SCALE_4G   ((0<<5) | (1<<4))
 
#define ACCEL_REG4_FULL_SCALE_8G   ((1<<5) | (1<<4))
 
#define ACCEL_STATUS_ZYXOR   (1<<7)
 
#define ACCEL_STATUS_ZOR   (1<<6)
 
#define ACCEL_STATUS_YOR   (1<<5)
 
#define ACCEL_STATUS_XOR   (1<<4)
 
#define ACCEL_STATUS_ZYXDA   (1<<3)
 
#define ACCEL_STATUS_ZDA   (1<<2)
 
#define ACCEL_STATUS_YDA   (1<<1)
 
#define ACCEL_STATUS_XDA   (1<<0)
 
#define ACCEL_DEFAULT_RANGE_G   8
 
#define ACCEL_DEFAULT_RATE   1000
 
#define ACCEL_DEFAULT_ONCHIP_FILTER_FREQ   780
 
#define ACCEL_ONE_G   9.80665f
 
#define GYRO_WHO_AM_I   0x0F
 
#define GYRO_WHO_I_AM   0xD3
 
#define GYRO_CTRL_REG1   0x20
 
#define RATE_100HZ_LP_25HZ   ((0<<7) | (0<<6) | (0<<5) | (1<<4))
 
#define RATE_200HZ_LP_25HZ   ((0<<7) | (1<<6) | (0<<5) | (1<<4))
 
#define RATE_200HZ_LP_50HZ   ((0<<7) | (1<<6) | (1<<5) | (0<<4))
 
#define RATE_200HZ_LP_70HZ   ((0<<7) | (1<<6) | (1<<5) | (1<<4))
 
#define RATE_400HZ_LP_20HZ   ((1<<7) | (0<<6) | (1<<5) | (0<<4))
 
#define RATE_400HZ_LP_25HZ   ((1<<7) | (0<<6) | (0<<5) | (1<<4))
 
#define RATE_400HZ_LP_50HZ   ((1<<7) | (0<<6) | (1<<5) | (0<<4))
 
#define RATE_400HZ_LP_100HZ   ((1<<7) | (0<<6) | (1<<5) | (1<<4))
 
#define RATE_800HZ_LP_30HZ   ((1<<7) | (1<<6) | (0<<5) | (0<<4))
 
#define RATE_800HZ_LP_35HZ   ((1<<7) | (1<<6) | (0<<5) | (1<<4))
 
#define RATE_800HZ_LP_50HZ   ((1<<7) | (1<<6) | (1<<5) | (0<<4))
 
#define RATE_800HZ_LP_100HZ   ((1<<7) | (1<<6) | (1<<5) | (1<<4))
 
#define GYRO_CTRL_REG2   0x21
 
#define GYRO_CTRL_REG3   0x22
 
#define GYRO_CTRL_REG4   0x23
 
#define RANGE_250DPS   (0<<4)
 
#define RANGE_500DPS   (1<<4)
 
#define RANGE_2000DPS   (3<<4)
 
#define GYRO_CTRL_REG5   0x24
 
#define GYRO_REFERENCE   0x25
 
#define GYRO_OUT_TEMP   0x26
 
#define GYRO_STATUS_REG   0x27
 
#define GYRO_OUT_X_L   0x28
 
#define GYRO_OUT_X_H   0x29
 
#define GYRO_OUT_Y_L   0x2A
 
#define GYRO_OUT_Y_H   0x2B
 
#define GYRO_OUT_Z_L   0x2C
 
#define GYRO_OUT_Z_H   0x2D
 
#define GYRO_FIFO_CTRL_REG   0x2E
 
#define GYRO_FIFO_SRC_REG   0x2F
 
#define GYRO_INT1_CFG   0x30
 
#define GYRO_INT1_SRC   0x31
 
#define GYRO_INT1_TSH_XH   0x32
 
#define GYRO_INT1_TSH_XL   0x33
 
#define GYRO_INT1_TSH_YH   0x34
 
#define GYRO_INT1_TSH_YL   0x35
 
#define GYRO_INT1_TSH_ZH   0x36
 
#define GYRO_INT1_TSH_ZL   0x37
 
#define GYRO_INT1_DURATION   0x38
 
#define GYRO_LOW_ODR   0x39
 
#define GYRO_REG1_POWER_NORMAL   (1<<3)
 
#define GYRO_REG1_Z_ENABLE   (1<<2)
 
#define GYRO_REG1_Y_ENABLE   (1<<1)
 
#define GYRO_REG1_X_ENABLE   (1<<0)
 
#define GYRO_REG4_BLE   (1<<6)
 
#define GYRO_REG5_FIFO_ENABLE   (1<<6)
 
#define GYRO_REG5_REBOOT_MEMORY   (1<<7)
 
#define GYRO_STATUS_ZYXOR   (1<<7)
 
#define GYRO_STATUS_ZOR   (1<<6)
 
#define GYRO_STATUS_YOR   (1<<5)
 
#define GYRO_STATUS_XOR   (1<<4)
 
#define GYRO_STATUS_ZYXDA   (1<<3)
 
#define GYRO_STATUS_ZDA   (1<<2)
 
#define GYRO_STATUS_YDA   (1<<1)
 
#define GYRO_STATUS_XDA   (1<<0)
 
#define GYRO_FIFO_CTRL_BYPASS_MODE   (0<<5)
 
#define GYRO_FIFO_CTRL_FIFO_MODE   (1<<5)
 
#define GYRO_FIFO_CTRL_STREAM_MODE   (1<<6)
 
#define GYRO_FIFO_CTRL_STREAM_TO_FIFO_MODE   (3<<5)
 
#define GYRO_FIFO_CTRL_BYPASS_TO_STREAM_MODE   (1<<7)
 
#define GYRO_DEFAULT_RATE   800
 
#define GYRO_DEFAULT_RANGE_DPS   2000
 
#define GYRO_DEFAULT_FILTER_FREQ   35
 
#define GYRO_TEMP_OFFSET_CELSIUS   40
 

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 

Macro Definition Documentation

◆ ACCEL_CTRL_REG1

#define ACCEL_CTRL_REG1   0x20

Definition at line 37 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_CTRL_REG2

#define ACCEL_CTRL_REG2   0x21

Definition at line 44 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_CTRL_REG3

#define ACCEL_CTRL_REG3   0x22

Definition at line 45 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_CTRL_REG4

#define ACCEL_CTRL_REG4   0x23

Definition at line 46 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_CTRL_REG5

#define ACCEL_CTRL_REG5   0x24

Definition at line 48 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_DEFAULT_ONCHIP_FILTER_FREQ

#define ACCEL_DEFAULT_ONCHIP_FILTER_FREQ   780

Definition at line 92 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_DEFAULT_RANGE_G

#define ACCEL_DEFAULT_RANGE_G   8

Definition at line 90 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_DEFAULT_RATE

#define ACCEL_DEFAULT_RATE   1000

Definition at line 91 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_HP_FILTER_RESETE

#define ACCEL_HP_FILTER_RESETE   0x25

Definition at line 49 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT1_CFG

#define ACCEL_INT1_CFG   0x30

Definition at line 58 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT1_DURATION

#define ACCEL_INT1_DURATION   0x33

Definition at line 61 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT1_SRC

#define ACCEL_INT1_SRC   0x31

Definition at line 59 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT1_TSH

#define ACCEL_INT1_TSH   0x32

Definition at line 60 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT2_CFG

#define ACCEL_INT2_CFG   0x34

Definition at line 62 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT2_DURATION

#define ACCEL_INT2_DURATION   0x37

Definition at line 65 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT2_SRC

#define ACCEL_INT2_SRC   0x35

Definition at line 63 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_INT2_TSH

#define ACCEL_INT2_TSH   0x36

Definition at line 64 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_ONE_G

#define ACCEL_ONE_G   9.80665f

Definition at line 93 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_OUT_REFERENCE

#define ACCEL_OUT_REFERENCE   0x26

Definition at line 50 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_OUT_X_H

#define ACCEL_OUT_X_H   0x29

Definition at line 53 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_OUT_X_L

#define ACCEL_OUT_X_L   0x28

Definition at line 52 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::accel_measure().

◆ ACCEL_OUT_Y_H

#define ACCEL_OUT_Y_H   0x2B

Definition at line 55 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_OUT_Y_L

#define ACCEL_OUT_Y_L   0x2A

Definition at line 54 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_OUT_Z_H

#define ACCEL_OUT_Z_H   0x2D

Definition at line 57 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_OUT_Z_L

#define ACCEL_OUT_Z_L   0x2C

Definition at line 56 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_REG1_POWER_NORMAL

#define ACCEL_REG1_POWER_NORMAL   ((0<<7) | (0<<6) | (1<<5))

Definition at line 69 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG1_X_ENABLE

#define ACCEL_REG1_X_ENABLE   (1<<0)

Definition at line 72 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG1_Y_ENABLE

#define ACCEL_REG1_Y_ENABLE   (1<<1)

Definition at line 71 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG1_Z_ENABLE

#define ACCEL_REG1_Z_ENABLE   (1<<2)

Definition at line 70 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG4_BDU

#define ACCEL_REG4_BDU   (1<<7)

Definition at line 74 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG4_BLE

#define ACCEL_REG4_BLE   (1<<6)

Definition at line 75 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_REG4_FULL_SCALE_2G

#define ACCEL_REG4_FULL_SCALE_2G   ((0<<5) | (0<<4))

Definition at line 77 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_REG4_FULL_SCALE_4G

#define ACCEL_REG4_FULL_SCALE_4G   ((0<<5) | (1<<4))

Definition at line 78 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_REG4_FULL_SCALE_8G

#define ACCEL_REG4_FULL_SCALE_8G   ((1<<5) | (1<<4))

Definition at line 79 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_REG4_FULL_SCALE_BITS

#define ACCEL_REG4_FULL_SCALE_BITS   ((1<<5) | (1<<4))

Definition at line 76 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_REG

#define ACCEL_STATUS_REG   0x27

Definition at line 51 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::accel_measure().

◆ ACCEL_STATUS_XDA

#define ACCEL_STATUS_XDA   (1<<0)

Definition at line 88 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_XOR

#define ACCEL_STATUS_XOR   (1<<4)

Definition at line 84 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_YDA

#define ACCEL_STATUS_YDA   (1<<1)

Definition at line 87 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_YOR

#define ACCEL_STATUS_YOR   (1<<5)

Definition at line 83 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_ZDA

#define ACCEL_STATUS_ZDA   (1<<2)

Definition at line 86 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_ZOR

#define ACCEL_STATUS_ZOR   (1<<6)

Definition at line 82 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_STATUS_ZYXDA

#define ACCEL_STATUS_ZYXDA   (1<<3)

Definition at line 85 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::accel_measure().

◆ ACCEL_STATUS_ZYXOR

#define ACCEL_STATUS_ZYXOR   (1<<7)

Definition at line 81 of file AP_InertialSensor_RST.cpp.

◆ ACCEL_WHO_AM_I

#define ACCEL_WHO_AM_I   0x0F

Definition at line 34 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ACCEL_WHO_I_AM

#define ACCEL_WHO_I_AM   0x32

Definition at line 35 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ ADDR_INCREMENT

#define ADDR_INCREMENT   (1<<6)

◆ GYRO_CTRL_REG1

#define GYRO_CTRL_REG1   0x20

Definition at line 99 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_CTRL_REG2

#define GYRO_CTRL_REG2   0x21

Definition at line 114 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_CTRL_REG3

#define GYRO_CTRL_REG3   0x22

Definition at line 115 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_CTRL_REG4

#define GYRO_CTRL_REG4   0x23

Definition at line 116 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_CTRL_REG5

#define GYRO_CTRL_REG5   0x24

Definition at line 121 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_DEFAULT_FILTER_FREQ

#define GYRO_DEFAULT_FILTER_FREQ   35

Definition at line 174 of file AP_InertialSensor_RST.cpp.

◆ GYRO_DEFAULT_RANGE_DPS

#define GYRO_DEFAULT_RANGE_DPS   2000

Definition at line 173 of file AP_InertialSensor_RST.cpp.

◆ GYRO_DEFAULT_RATE

#define GYRO_DEFAULT_RATE   800

Definition at line 172 of file AP_InertialSensor_RST.cpp.

◆ GYRO_FIFO_CTRL_BYPASS_MODE

#define GYRO_FIFO_CTRL_BYPASS_MODE   (0<<5)

Definition at line 165 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_FIFO_CTRL_BYPASS_TO_STREAM_MODE

#define GYRO_FIFO_CTRL_BYPASS_TO_STREAM_MODE   (1<<7)

Definition at line 169 of file AP_InertialSensor_RST.cpp.

◆ GYRO_FIFO_CTRL_FIFO_MODE

#define GYRO_FIFO_CTRL_FIFO_MODE   (1<<5)

Definition at line 166 of file AP_InertialSensor_RST.cpp.

◆ GYRO_FIFO_CTRL_REG

#define GYRO_FIFO_CTRL_REG   0x2E

Definition at line 131 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_FIFO_CTRL_STREAM_MODE

#define GYRO_FIFO_CTRL_STREAM_MODE   (1<<6)

Definition at line 167 of file AP_InertialSensor_RST.cpp.

◆ GYRO_FIFO_CTRL_STREAM_TO_FIFO_MODE

#define GYRO_FIFO_CTRL_STREAM_TO_FIFO_MODE   (3<<5)

Definition at line 168 of file AP_InertialSensor_RST.cpp.

◆ GYRO_FIFO_SRC_REG

#define GYRO_FIFO_SRC_REG   0x2F

Definition at line 132 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_CFG

#define GYRO_INT1_CFG   0x30

Definition at line 133 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_DURATION

#define GYRO_INT1_DURATION   0x38

Definition at line 141 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_SRC

#define GYRO_INT1_SRC   0x31

Definition at line 134 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_XH

#define GYRO_INT1_TSH_XH   0x32

Definition at line 135 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_XL

#define GYRO_INT1_TSH_XL   0x33

Definition at line 136 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_YH

#define GYRO_INT1_TSH_YH   0x34

Definition at line 137 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_YL

#define GYRO_INT1_TSH_YL   0x35

Definition at line 138 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_ZH

#define GYRO_INT1_TSH_ZH   0x36

Definition at line 139 of file AP_InertialSensor_RST.cpp.

◆ GYRO_INT1_TSH_ZL

#define GYRO_INT1_TSH_ZL   0x37

Definition at line 140 of file AP_InertialSensor_RST.cpp.

◆ GYRO_LOW_ODR

#define GYRO_LOW_ODR   0x39

Definition at line 142 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_TEMP

#define GYRO_OUT_TEMP   0x26

Definition at line 123 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_X_H

#define GYRO_OUT_X_H   0x29

Definition at line 126 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_X_L

#define GYRO_OUT_X_L   0x28

Definition at line 125 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::gyro_measure().

◆ GYRO_OUT_Y_H

#define GYRO_OUT_Y_H   0x2B

Definition at line 128 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_Y_L

#define GYRO_OUT_Y_L   0x2A

Definition at line 127 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_Z_H

#define GYRO_OUT_Z_H   0x2D

Definition at line 130 of file AP_InertialSensor_RST.cpp.

◆ GYRO_OUT_Z_L

#define GYRO_OUT_Z_L   0x2C

Definition at line 129 of file AP_InertialSensor_RST.cpp.

◆ GYRO_REFERENCE

#define GYRO_REFERENCE   0x25

Definition at line 122 of file AP_InertialSensor_RST.cpp.

◆ GYRO_REG1_POWER_NORMAL

#define GYRO_REG1_POWER_NORMAL   (1<<3)

Definition at line 146 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_REG1_X_ENABLE

#define GYRO_REG1_X_ENABLE   (1<<0)

Definition at line 149 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_REG1_Y_ENABLE

#define GYRO_REG1_Y_ENABLE   (1<<1)

Definition at line 148 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_REG1_Z_ENABLE

#define GYRO_REG1_Z_ENABLE   (1<<2)

Definition at line 147 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_REG4_BLE

#define GYRO_REG4_BLE   (1<<6)

Definition at line 151 of file AP_InertialSensor_RST.cpp.

◆ GYRO_REG5_FIFO_ENABLE

#define GYRO_REG5_FIFO_ENABLE   (1<<6)

Definition at line 153 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_REG5_REBOOT_MEMORY

#define GYRO_REG5_REBOOT_MEMORY   (1<<7)

Definition at line 154 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_REG

#define GYRO_STATUS_REG   0x27

Definition at line 124 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::gyro_measure().

◆ GYRO_STATUS_XDA

#define GYRO_STATUS_XDA   (1<<0)

Definition at line 163 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_XOR

#define GYRO_STATUS_XOR   (1<<4)

Definition at line 159 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_YDA

#define GYRO_STATUS_YDA   (1<<1)

Definition at line 162 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_YOR

#define GYRO_STATUS_YOR   (1<<5)

Definition at line 158 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_ZDA

#define GYRO_STATUS_ZDA   (1<<2)

Definition at line 161 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_ZOR

#define GYRO_STATUS_ZOR   (1<<6)

Definition at line 157 of file AP_InertialSensor_RST.cpp.

◆ GYRO_STATUS_ZYXDA

#define GYRO_STATUS_ZYXDA   (1<<3)

Definition at line 160 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::gyro_measure().

◆ GYRO_STATUS_ZYXOR

#define GYRO_STATUS_ZYXOR   (1<<7)

Definition at line 156 of file AP_InertialSensor_RST.cpp.

◆ GYRO_TEMP_OFFSET_CELSIUS

#define GYRO_TEMP_OFFSET_CELSIUS   40

Definition at line 175 of file AP_InertialSensor_RST.cpp.

◆ GYRO_WHO_AM_I

#define GYRO_WHO_AM_I   0x0F

Definition at line 96 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ GYRO_WHO_I_AM

#define GYRO_WHO_I_AM   0xD3

Definition at line 97 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ RANGE_2000DPS

#define RANGE_2000DPS   (3<<4)

Definition at line 119 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

◆ RANGE_250DPS

#define RANGE_250DPS   (0<<4)

Definition at line 117 of file AP_InertialSensor_RST.cpp.

◆ RANGE_500DPS

#define RANGE_500DPS   (1<<4)

Definition at line 118 of file AP_InertialSensor_RST.cpp.

◆ RATE_1000HZ_LP_780HZ

#define RATE_1000HZ_LP_780HZ   (1<<4) | (1<<3)

Definition at line 42 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_accel().

◆ RATE_100HZ_LP_25HZ

#define RATE_100HZ_LP_25HZ   ((0<<7) | (0<<6) | (0<<5) | (1<<4))

Definition at line 101 of file AP_InertialSensor_RST.cpp.

◆ RATE_100HZ_LP_74HZ

#define RATE_100HZ_LP_74HZ   (0<<4) | (1<<3)

Definition at line 40 of file AP_InertialSensor_RST.cpp.

◆ RATE_200HZ_LP_25HZ

#define RATE_200HZ_LP_25HZ   ((0<<7) | (1<<6) | (0<<5) | (1<<4))

Definition at line 102 of file AP_InertialSensor_RST.cpp.

◆ RATE_200HZ_LP_50HZ

#define RATE_200HZ_LP_50HZ   ((0<<7) | (1<<6) | (1<<5) | (0<<4))

Definition at line 103 of file AP_InertialSensor_RST.cpp.

◆ RATE_200HZ_LP_70HZ

#define RATE_200HZ_LP_70HZ   ((0<<7) | (1<<6) | (1<<5) | (1<<4))

Definition at line 104 of file AP_InertialSensor_RST.cpp.

◆ RATE_400HZ_LP_100HZ

#define RATE_400HZ_LP_100HZ   ((1<<7) | (0<<6) | (1<<5) | (1<<4))

Definition at line 108 of file AP_InertialSensor_RST.cpp.

◆ RATE_400HZ_LP_20HZ

#define RATE_400HZ_LP_20HZ   ((1<<7) | (0<<6) | (1<<5) | (0<<4))

Definition at line 105 of file AP_InertialSensor_RST.cpp.

◆ RATE_400HZ_LP_25HZ

#define RATE_400HZ_LP_25HZ   ((1<<7) | (0<<6) | (0<<5) | (1<<4))

Definition at line 106 of file AP_InertialSensor_RST.cpp.

◆ RATE_400HZ_LP_292HZ

#define RATE_400HZ_LP_292HZ   (1<<4) | (0<<3)

Definition at line 41 of file AP_InertialSensor_RST.cpp.

◆ RATE_400HZ_LP_50HZ

#define RATE_400HZ_LP_50HZ   ((1<<7) | (0<<6) | (1<<5) | (0<<4))

Definition at line 107 of file AP_InertialSensor_RST.cpp.

◆ RATE_50HZ_LP_37HZ

#define RATE_50HZ_LP_37HZ   (0<<4) | (0<<3)

Definition at line 39 of file AP_InertialSensor_RST.cpp.

◆ RATE_800HZ_LP_100HZ

#define RATE_800HZ_LP_100HZ   ((1<<7) | (1<<6) | (1<<5) | (1<<4))

Definition at line 112 of file AP_InertialSensor_RST.cpp.

◆ RATE_800HZ_LP_30HZ

#define RATE_800HZ_LP_30HZ   ((1<<7) | (1<<6) | (0<<5) | (0<<4))

Definition at line 109 of file AP_InertialSensor_RST.cpp.

◆ RATE_800HZ_LP_35HZ

#define RATE_800HZ_LP_35HZ   ((1<<7) | (1<<6) | (0<<5) | (1<<4))

Definition at line 110 of file AP_InertialSensor_RST.cpp.

◆ RATE_800HZ_LP_50HZ

#define RATE_800HZ_LP_50HZ   ((1<<7) | (1<<6) | (1<<5) | (0<<4))

Definition at line 111 of file AP_InertialSensor_RST.cpp.

Referenced by AP_InertialSensor_RST::_init_gyro().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

Definition at line 14 of file AC_PID_test.cpp.