Subversion Repositories FlightCtrl

Rev

Rev 1646 | Rev 1967 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1646 - 1
#ifndef _SENSORS_H
2
#define _SENSORS_H
1645 - 3
 
1646 - 4
#include <inttypes.h>
5
 
1612 dongfang 6
/*
1646 - 7
 * Whether (pitch, roll, yaw) gyros are reversed (see analog.h).
8
 */
9
extern const uint8_t GYRO_REVERSED[3];
10
 
11
/*
12
 * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h).
13
 */
14
extern const uint8_t ACC_REVERSED[3];
15
 
1965 - 16
extern volatile sensorOffset_t DACValues;
17
 
1646 - 18
/*
1612 dongfang 19
 * Common procedures for all gyro types.
20
 * FC 1.3 hardware: Searching the DAC values that return neutral readings.
21
 * FC 2.0 hardware: Nothing to do.
22
 * InvenSense hardware: Output a pulse on the AUTO_ZERO line.
23
 */
24
void gyro_calibrate(void);
25
 
1645 - 26
/*
27
 * Set some default FC parameters, depending on gyro type: Drift correction etc.
28
 */
1612 dongfang 29
void gyro_setDefaults(void);
1646 - 30
 
31
#endif