Rev 2035 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2035 | Rev 2189 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | 10 | ||
11 | extern volatile uint8_t twi_state; |
11 | extern volatile uint8_t twi_state; |
Line 12... | Line 12... | ||
12 | extern uint8_t missingMotor; |
12 | extern uint8_t missingMotor; |
13 | 13 | ||
- | 14 | typedef struct { |
|
- | 15 | uint8_t throttle; |
|
14 | typedef struct { |
16 | uint8_t current; |
15 | uint8_t throttle; // written by attitude controller |
17 | uint8_t maxPWM; |
16 | uint8_t present; // 0 if BL was found |
- | |
17 | uint8_t error; // I2C error counter |
- | |
18 | uint8_t current; // read back from BL |
18 | uint8_t present; // 0 if BL was found |
Line 19... | Line 19... | ||
19 | uint8_t maxPWM; // read back from BL |
19 | uint8_t error; // I2C error counter |
Line 20... | Line 20... | ||
20 | }__attribute__((packed)) motorData_t; |
20 | }__attribute__((packed)) MLBLC_t; |
Line 21... | Line 21... | ||
21 | 21 | ||
22 | extern motorData_t motor[MAX_MOTORS]; |
22 | extern MLBLC_t mkblcs[MAX_I2CCHANNELS]; |
23 | 23 | ||
24 | extern volatile uint16_t I2CTimeout; |
24 | extern volatile uint16_t I2CTimeout; |
25 | 25 | ||
Line 26... | Line 26... | ||
26 | extern void I2C_init(void); // Initialize I2C |
26 | extern void I2C_init(void); // Initialize I2C |