Subversion Repositories FlightCtrl

Rev

Rev 1971 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1971 Rev 2018
Line 2... Line 2...
2
#define _SENSORS_H
2
#define _SENSORS_H
Line 3... Line 3...
3
 
3
 
4
#include <inttypes.h>
4
#include <inttypes.h>
Line 5... Line -...
5
#include "configuration.h"
-
 
6
 
-
 
7
/*
-
 
8
 * Whether (pitch, roll, yaw) gyros are reversed (see analog.h).
-
 
9
 */
-
 
10
extern const uint8_t GYRO_REVERSED[3];
-
 
11
 
-
 
12
/*
-
 
13
 * Whether (pitch, roll, Z) acc. meters are reversed(see analog.h).
-
 
14
 */
5
#include "configuration.h"
Line 15... Line 6...
15
extern const uint8_t ACC_REVERSED[3];
6
 
16
extern sensorOffset_t gyroAmplifierOffset;
7
extern sensorOffset_t gyroAmplifierOffset;
17
 
8
 
Line 24... Line 15...
24
void gyro_calibrate(void);
15
void gyro_calibrate(void);
Line 25... Line 16...
25
 
16
 
26
/*
17
/*
27
 * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing.
18
 * FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing.
28
 */
19
 */
Line 29... Line 20...
29
void gyro_loadAmplifierOffsets(uint8_t overwriteWithDefaults);
20
void gyro_init(void);
30
 
21
 
31
/*
22
/*
32
 * Set some default FC parameters, depending on gyro type: Drift correction etc.
23
 * Set some default FC parameters, depending on gyro type: Drift correction etc.