Subversion Repositories FlightCtrl

Rev

Rev 1645 | Rev 1965 | 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
 
16
/*
1612 dongfang 17
 * Common procedures for all gyro types.
18
 * FC 1.3 hardware: Searching the DAC values that return neutral readings.
19
 * FC 2.0 hardware: Nothing to do.
20
 * InvenSense hardware: Output a pulse on the AUTO_ZERO line.
21
 */
22
void gyro_calibrate(void);
23
 
1645 - 24
/*
25
 * Set some default FC parameters, depending on gyro type: Drift correction etc.
26
 */
1612 dongfang 27
void gyro_setDefaults(void);
1646 - 28
 
29
#endif