Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1959 → Rev 1960

/branches/dongfang_FC_rewrite/analog.h
188,6 → 188,15
// 1:11 voltage divider, 1024 counts per 3V, and result is divided by 3.
#define UBAT_AT_5V (int16_t)((5.0 * (1.0/11.0)) * 1024 / (3.0 * 3))
 
typedef struct {
uint8_t checksum;
uint8_t revisionNumber;
int16_t offsets[3];
} sensorOffset_t;
 
extern sensorOffset_t gyroOffset;
extern sensorOffset_t accOffset;
 
/*
* This is not really for external use - but the ENC-03 gyro modules needs it.
*/