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

Go to the source code of this file.

Macros

#define MAX_SENSORS_TO_DETECT   (SENSOR_INDEX_MAG + 1)
 

Enumerations

enum  sensorIndex_e { SENSOR_INDEX_GYRO = 0, SENSOR_INDEX_ACC, SENSOR_INDEX_BARO, SENSOR_INDEX_MAG }
 

Functions

bool sensorsAutodetect (const struct config *config)
 

Variables

mag_t mag
 
uint8_t detectedSensors [MAX_SENSORS_TO_DETECT]
 
sensor_align_e gyroAlign
 
sensor_align_e accAlign
 
sensor_align_e magAlign
 

Macro Definition Documentation

#define MAX_SENSORS_TO_DETECT   (SENSOR_INDEX_MAG + 1)

Enumeration Type Documentation

Enumerator
SENSOR_INDEX_GYRO 
SENSOR_INDEX_ACC 
SENSOR_INDEX_BARO 
SENSOR_INDEX_MAG 

Function Documentation

bool sensorsAutodetect ( const struct config config)

Here is the call graph for this function:

Variable Documentation

sensor_align_e accAlign
uint8_t detectedSensors[MAX_SENSORS_TO_DETECT]
sensor_align_e gyroAlign
mag_t mag
sensor_align_e magAlign