Subversion Repositories FlightCtrl

Rev

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

Rev 1179 Rev 1180
Line 1... Line 1...
1
#ifndef _ANALOG_H
1
#ifndef _ANALOG_H
2
#define _ANALOG_H
2
#define _ANALOG_H
Line 3... Line 3...
3
 
3
 
Line -... Line 4...
-
 
4
#include <inttypes.h>
4
#include <inttypes.h>
5
 
5
 
6
extern volatile uint16_t MeasurementCounter;
-
 
7
extern volatile int16_t UBat;
6
extern volatile int16_t UBat;
8
extern volatile int16_t AdValueGyroNick, AdValueGyroRoll, AdValueGyroYaw;
7
extern volatile int16_t AdValueGyrNick, AdValueGyrRoll, AdValueGyrYaw;
9
#define HIRES_GYRO_AMPLIFY 8 // the offset corrected HiResGyro values are a factor of 8 scaled to the AdValues
8
extern uint8_t AnalogOffsetNick, AnalogOffsetRoll, AnalogOffsetYaw;
10
extern volatile int16_t HiResGyroNick, HiResGyroRoll;
9
extern volatile int16_t AdValueAccRoll, AdValueAccNick, AdValueAccTop;
11
extern volatile int16_t FilterHiResGyroNick, FilterHiResGyroRoll;
10
extern volatile int16_t Current_AccZ;
-
 
11
extern volatile int32_t AirPressure;
-
 
12
extern volatile uint16_t MeasurementCounter;
-
 
13
extern int8_t ExpandBaro;
12
extern volatile int16_t AdValueAccRoll, AdValueAccNick, AdValueAccTop, AdValueAccZ;
14
extern uint8_t PressureSensorOffset;
13
extern volatile int32_t AirPressure;
15
extern volatile int16_t HeightD;
14
extern volatile int16_t HeightD;
-
 
15
extern volatile uint16_t ReadingAirPressure;
-
 
16
extern volatile int16_t StartAirPressure;
-
 
17
extern volatile uint8_t ADReady;
-
 
18
 
-
 
19
extern uint8_t DacOffsetGyroNick, DacOffsetGyroRoll, DacOffsetGyroYaw;
-
 
20
extern uint8_t PressureSensorOffset;
Line 16... Line 21...
16
extern volatile uint16_t ReadingAirPressure;
21
extern int8_t ExpandBaro;
17
extern volatile int16_t  StartAirPressure;
22
 
18
 
23
 
Line -... Line 24...
-
 
24
void SearchAirPressureOffset(void);
19
void SearchAirPressureOffset(void);
25
void SearchDacGyroOffset(void);
20
void SearchGyroOffset(void);
26
void ADC_Init(void);
21
void ADC_Init(void);
27
 
22
 
28