APM:Libraries
Macros | Variables
AP_InertialSensor_Invensense.cpp File Reference
#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"
Include dependency graph for AP_InertialSensor_Invensense.cpp:

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::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 
static const float GYRO_SCALE = (0.0174532f / 16.4f)
 

Macro Definition Documentation

◆ debug

#define debug (   fmt,
  args ... 
)    do {hal.console->printf("MPU: " fmt "\n", ## args); } while(0)

◆ int16_val

#define int16_val (   v,
  idx 
)    ((int16_t)(((uint16_t)v[2*idx] << 8) | v[2*idx+1]))

◆ INVENSENSE_DRDY_PIN

#define INVENSENSE_DRDY_PIN   BBB_P8_14

◆ INVENSENSE_EXT_SYNC_ENABLE

#define INVENSENSE_EXT_SYNC_ENABLE   0

Definition at line 53 of file AP_InertialSensor_Invensense.cpp.

◆ MPU_FIFO_BUFFER_LEN

#define MPU_FIFO_BUFFER_LEN   16

◆ MPU_SAMPLE_SIZE

#define MPU_SAMPLE_SIZE   14

◆ uint16_val

#define uint16_val (   v,
  idx 
)    (((uint16_t)v[2*idx] << 8) | v[2*idx+1])

Variable Documentation

◆ GYRO_SCALE

const float GYRO_SCALE = (0.0174532f / 16.4f)
static

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