Rev 28 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 28 | Rev 29 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | volatile uint8_t *I2C_TxBuffer = 0, *I2C_RxBuffer = 0; |
68 | volatile uint8_t *I2C_TxBuffer = 0, *I2C_RxBuffer = 0; |
69 | volatile uint8_t Tx_Idx = 0, Rx_Idx = 0; |
69 | volatile uint8_t Tx_Idx = 0, Rx_Idx = 0; |
Line 70... | Line 70... | ||
70 | 70 | ||
Line -... | Line 71... | ||
- | 71 | volatile uint8_t I2C_PrimRxBuffer[10]; |
|
71 | volatile uint8_t I2C_PrimRxBuffer[10]; |
72 | |
72 | 73 | uint8_t NC_Connected = 0; |
|
73 | struct I2C_Heading_t I2C_Heading; |
74 | struct I2C_Heading_t I2C_Heading; |
74 | struct I2C_WriteAttitude_t I2C_WriteAttitude; |
75 | struct I2C_WriteAttitude_t I2C_WriteAttitude; |
75 | struct I2C_Mag_t I2C_Mag; |
76 | struct I2C_Mag_t I2C_Mag; |
Line 185... | Line 186... | ||
185 | I2C_TxBufferSize = sizeof(I2C_Heading); |
186 | I2C_TxBufferSize = sizeof(I2C_Heading); |
186 | I2C_RxBuffer = (uint8_t *)&I2C_WriteAttitude; |
187 | I2C_RxBuffer = (uint8_t *)&I2C_WriteAttitude; |
187 | I2C_RxBufferSize = sizeof(I2C_WriteAttitude); |
188 | I2C_RxBufferSize = sizeof(I2C_WriteAttitude); |
188 | I2C_Heading.Heading = Heading; |
189 | I2C_Heading.Heading = Heading; |
189 | AttitudeSource = ATTITUDE_SOURCE_I2C; |
190 | AttitudeSource = ATTITUDE_SOURCE_I2C; |
- | 191 | Orientation = ORIENTATION_NC; |
|
- | 192 | NC_Connected = 255; |
|
190 | break; |
193 | break; |
191 | default: // unknown command id |
194 | default: // unknown command id |
192 | I2C_RxBuffer = 0; |
195 | I2C_RxBuffer = 0; |
193 | I2C_RxBufferSize = 0; |
196 | I2C_RxBufferSize = 0; |
194 | I2C_TxBuffer = 0; |
197 | I2C_TxBuffer = 0; |