Subversion Repositories FlightCtrl

Rev

Rev 2021 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1910 - 1
#ifndef _SENSORS_H
2
#define _SENSORS_H
3
 
4
#include <inttypes.h>
2099 - 5
#include "configuration.h"
1910 - 6
 
2099 - 7
extern sensorOffset_t gyroAmplifierOffset;
1910 - 8
 
9
/*
10
 * Common procedures for all gyro types.
11
 * FC 1.3 hardware: Searching the DAC values that return neutral readings.
12
 * FC 2.0 hardware: Nothing to do.
13
 * InvenSense hardware: Output a pulse on the AUTO_ZERO line.
14
 */
15
void gyro_calibrate(void);
16
 
17
/*
2099 - 18
 * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing.
19
 */
20
void gyro_init(void);
21
 
22
/*
1910 - 23
 * Set some default FC parameters, depending on gyro type: Drift correction etc.
24
 */
2099 - 25
void gyro_setDefaultParameters(void);
1910 - 26
 
27
#endif