NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sensors.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sensor_alignment_config
 
struct  sensor_selection_config
 
struct  int16_flightDynamicsTrims_s
 
union  __attribute__
 
struct  sensor_trims_config
 
struct  sensor_config
 

Enumerations

enum  sensors_e {
  SENSOR_GYRO = 1 << 0, SENSOR_ACC = 1 << 1, SENSOR_BARO = 1 << 2, SENSOR_MAG = 1 << 3,
  SENSOR_SONAR = 1 << 4, SENSOR_GPS = 1 << 5, SENSOR_GPSMAG = 1 << 6
}
 
enum  sensor_align_e {
  ALIGN_DEFAULT = 0, CW0_DEG = 1, CW90_DEG = 2, CW180_DEG = 3,
  CW270_DEG = 4, CW0_DEG_FLIP = 5, CW90_DEG_FLIP = 6, CW180_DEG_FLIP = 7,
  CW270_DEG_FLIP = 8
}
 

Functions

struct sensor_alignment_config __attribute__ ((packed))
 

Variables

typedef __attribute__
 
sensor_align_e gyro_align
 
sensor_align_e acc_align
 
sensor_align_e mag_align
 
uint8_t acc_hardware
 
uint8_t mag_hardware
 
uint8_t baro_hardware
 
int16_t roll
 
int16_t pitch
 
int16_t yaw
 
flightDynamicsTrims_t accZero
 
flightDynamicsTrims_t magZero
 
struct sensor_selection_config selection
 
struct sensor_alignment_config alignment
 
struct sensor_trims_config trims
 

Enumeration Type Documentation

Enumerator
ALIGN_DEFAULT 
CW0_DEG 
CW90_DEG 
CW180_DEG 
CW270_DEG 
CW0_DEG_FLIP 
CW90_DEG_FLIP 
CW180_DEG_FLIP 
CW270_DEG_FLIP 
enum sensors_e
Enumerator
SENSOR_GYRO 
SENSOR_ACC 
SENSOR_BARO 
SENSOR_MAG 
SENSOR_SONAR 
SENSOR_GPS 
SENSOR_GPSMAG 

Function Documentation

struct sensor_alignment_config __attribute__ ( (packed)  )

Variable Documentation

typedef __attribute__
sensor_align_e acc_align
uint8_t acc_hardware
flightDynamicsTrims_t accZero
struct sensor_alignment_config alignment
uint8_t baro_hardware
sensor_align_e gyro_align
sensor_align_e mag_align
uint8_t mag_hardware
flightDynamicsTrims_t magZero
int16_t pitch
int16_t roll
struct sensor_selection_config selection
struct sensor_trims_config trims
int16_t yaw