Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1964 → Rev 1965

/branches/dongfang_FC_rewrite/twimaster.h
9,11 → 9,8
#define TWI_STATE_GYRO_OFFSET_TX 7
 
extern volatile uint8_t twi_state;
 
extern uint8_t missingMotor;
 
volatile extern uint8_t DACValues[4];
 
typedef struct {
uint8_t SetPoint; // written by attitude controller
uint8_t Present; // 0 if BL was found
20,9 → 17,9
uint8_t Error; // I2C error counter
uint8_t Current; // read byck from BL
uint8_t MaxPWM; // read back from BL
}__attribute__((packed)) MotorData_t;
}__attribute__((packed)) motorData_t;
 
extern MotorData_t motor[MAX_MOTORS];
extern motorData_t motor[MAX_MOTORS];
 
extern volatile uint16_t I2CTimeout;