Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2099 → Rev 2102

/branches/dongfang_FC_fixedwing/analog.h
116,7 → 116,7
 
extern sensorOffset_t gyroOffset;
//extern sensorOffset_t accOffset;
extern sensorOffset_t gyroAmplifierOffset;
//extern sensorOffset_t gyroAmplifierOffset;
 
/*
* This is not really for external use - but the ENC-03 gyro modules needs it.
136,7 → 136,7
* its motors running.
*/
extern uint16_t gyroNoisePeak[3];
extern uint16_t accNoisePeak[3];
//extern uint16_t accNoisePeak[3];
 
/*
* Air pressure.
168,31 → 168,9
This is OCR2 = 143.15 at 1.5V in --> simple pressure =
*/
 
#define AIRPRESSURE_OVERSAMPLING 14
#define AIRPRESSURE_FILTER 8
// Minimum A/D value before a range change is performed.
#define MIN_RAWPRESSURE (200 * 2)
// Maximum A/D value before a range change is performed.
#define MAX_RAWPRESSURE (1023 * 2 - MIN_RAWPRESSURE)
 
#define MIN_RANGES_EXTRAPOLATION 15
#define MAX_RANGES_EXTRAPOLATION 240
 
#define PRESSURE_EXTRAPOLATION_COEFF 25L
#define AUTORANGE_WAIT_FACTOR 1
 
#define ABS_ALTITUDE_OFFSET 108205
 
extern uint16_t simpleAirPressure;
/*
* At saturation, the filteredAirPressure may actually be (simulated) negative.
*/
extern int32_t filteredAirPressure;
extern uint16_t airspeedVelocity;
 
extern int16_t magneticHeading;
 
extern uint32_t gyroActivity;
 
/*
* Flag: Interrupt handler has done all A/D conversion and processing.
*/
232,10 → 210,4
*/
//void analog_calibrateAcc(void);
 
 
void analog_setGround(void);
 
int32_t analog_getHeight(void);
int16_t analog_getDHeight(void);
 
#endif //_ANALOG_H