Subversion Repositories FlightCtrl

Rev

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

Rev 1960 Rev 1965
Line 7... Line 7...
7
#define TWI_STATE_MOTOR_TX                      0
7
#define TWI_STATE_MOTOR_TX                      0
8
#define TWI_STATE_MOTOR_RX                      3
8
#define TWI_STATE_MOTOR_RX                      3
9
#define TWI_STATE_GYRO_OFFSET_TX        7
9
#define TWI_STATE_GYRO_OFFSET_TX        7
Line 10... Line 10...
10
 
10
 
11
extern volatile uint8_t twi_state;
-
 
12
 
11
extern volatile uint8_t twi_state;
Line 13... Line -...
13
extern uint8_t missingMotor;
-
 
14
 
-
 
15
volatile extern uint8_t DACValues[4];
12
extern uint8_t missingMotor;
16
 
13
 
17
typedef struct {
14
typedef struct {
18
        uint8_t SetPoint; // written by attitude controller
15
        uint8_t SetPoint; // written by attitude controller
19
        uint8_t Present; // 0 if BL was found
16
        uint8_t Present; // 0 if BL was found
20
        uint8_t Error; // I2C error counter
17
        uint8_t Error; // I2C error counter
21
        uint8_t Current; // read byck from BL
18
        uint8_t Current; // read byck from BL
Line 22... Line 19...
22
        uint8_t MaxPWM; // read back from BL
19
        uint8_t MaxPWM; // read back from BL
Line 23... Line 20...
23
}__attribute__((packed)) MotorData_t;
20
}__attribute__((packed)) motorData_t;
Line 24... Line 21...
24
 
21
 
25
extern MotorData_t motor[MAX_MOTORS];
22
extern motorData_t motor[MAX_MOTORS];