APM:Libraries
|
#include <assert.h>
#include <utility>
#include <stdio.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_InertialSensor_Invensense.h"
#include <AP_HAL_Linux/GPIO.h>
#include "AP_InertialSensor_Invensense_registers.h"
Go to the source code of this file.
Macros | |
#define | INVENSENSE_DRDY_PIN BBB_P8_14 |
#define | debug(fmt, args ...) do {hal.console->printf("MPU: " fmt "\n", ## args); } while(0) |
#define | INVENSENSE_EXT_SYNC_ENABLE 0 |
#define | MPU_SAMPLE_SIZE 14 |
#define | MPU_FIFO_BUFFER_LEN 16 |
#define | int16_val(v, idx) ((int16_t)(((uint16_t)v[2*idx] << 8) | v[2*idx+1])) |
#define | uint16_val(v, idx) (((uint16_t)v[2*idx] << 8) | v[2*idx+1]) |
Variables | |
const AP_HAL::HAL & | hal |
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More... | |
static const float | GYRO_SCALE = (0.0174532f / 16.4f) |
Definition at line 43 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_accumulate(), AP_InertialSensor_Invensense::_accumulate_sensor_rate_sampling(), and AP_InertialSensor_Invensense::_read_fifo().
Definition at line 61 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_accumulate(), AP_InertialSensor_Invensense::_accumulate_sensor_rate_sampling(), and AP_InertialSensor_Invensense::_check_raw_temp().
#define INVENSENSE_DRDY_PIN BBB_P8_14 |
Definition at line 33 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_init().
#define INVENSENSE_EXT_SYNC_ENABLE 0 |
Definition at line 53 of file AP_InertialSensor_Invensense.cpp.
#define MPU_FIFO_BUFFER_LEN 16 |
Definition at line 59 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_read_fifo(), AP_InertialSensor_Invensense::start(), and AP_InertialSensor_Invensense::~AP_InertialSensor_Invensense().
#define MPU_SAMPLE_SIZE 14 |
Definition at line 58 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_accumulate(), AP_InertialSensor_Invensense::_accumulate_sensor_rate_sampling(), AP_InertialSensor_Invensense::_read_fifo(), AP_InertialSensor_Invensense::start(), and AP_InertialSensor_Invensense::~AP_InertialSensor_Invensense().
Definition at line 62 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_read_fifo().
|
static |
Definition at line 68 of file AP_InertialSensor_Invensense.cpp.
Referenced by AP_InertialSensor_Invensense::_accumulate(), AP_InertialSensor_Invensense::_accumulate_sensor_rate_sampling(), and AP_InertialSensor_Invensense::start().
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.