Subversion Repositories FlightCtrl

Rev

Rev 1910 | Go to most recent revision | 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>
5
 
6
/*
7
 * Whether (pitch, roll, yaw) gyros are reversed (see analog.h).
8
 */
9
extern const uint8_t GYRO_QUADRANT;
2021 - 10
extern const uint8_t YAW_GYRO_REVERSED;
11
extern const uint8_t PR_GYROS_ORIENTATION_REVERSED;
1910 - 12
 
13
/*
14
 * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h).
15
 */
16
//extern const uint8_t ACC_QUADRANT;
17
extern const uint8_t Z_ACC_REVERSED;
18
 
19
/*
20
 * Common procedures for all gyro types.
21
 * FC 1.3 hardware: Searching the DAC values that return neutral readings.
22
 * FC 2.0 hardware: Nothing to do.
23
 * InvenSense hardware: Output a pulse on the AUTO_ZERO line.
24
 */
25
void gyro_calibrate(void);
26
 
27
/*
28
 * Set some default FC parameters, depending on gyro type: Drift correction etc.
29
 */
30
void gyro_setDefaults(void);
31
 
32
#endif