Subversion Repositories FlightCtrl

Rev

Rev 2104 | Rev 2109 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2104 Rev 2106
Line 106... Line 106...
106
extern int16_t gyroD[3];
106
extern int16_t gyroD[3];
Line 107... Line 107...
107
 
107
 
Line 108... Line 108...
108
#define GYRO_D_WINDOW_LENGTH 8
108
#define GYRO_D_WINDOW_LENGTH 8
109
 
109
 
Line 110... Line 110...
110
extern uint16_t UBat;
110
extern uint16_t UBat;
111
extern uint16_t airspeed;
111
extern uint16_t airspeedVelocity;
112
 
-
 
113
// 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3.
112
 
-
 
113
// 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3.
Line 114... Line 114...
114
#define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3))
114
#define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3))
115
 
115
extern sensorOffset_t gyroOffset;
116
extern sensorOffset_t gyroOffset;
116
extern uint16_t airpressureOffset;
117
 
117
 
Line 197... Line 197...
197
void analog_setNeutral(void);
197
void analog_setNeutral(void);
Line 198... Line 198...
198
 
198
 
199
/*
199
/*
200
 * Zero-offset gyros and write the calibration data to EEPROM.
200
 * Zero-offset gyros and write the calibration data to EEPROM.
201
 */
201
 */
202
void analog_calibrateGyros(void);
-
 
203
 
-
 
204
/*
-
 
205
 * Zero-offset accelerometers and write the calibration data to EEPROM.
-
 
206
 */
-
 
Line 207... Line 202...
207
//void analog_calibrateAcc(void);
202
void analog_calibrate(void);