Rev 26 | Rev 28 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 26 | Rev 27 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | I2C_TxBuffer = (uint8_t *)&I2C_Heading; |
184 | I2C_TxBuffer = (uint8_t *)&I2C_Heading; |
185 | I2C_TxBufferSize = sizeof(I2C_Heading); |
185 | I2C_TxBufferSize = sizeof(I2C_Heading); |
186 | I2C_RxBuffer = (uint8_t *)&I2C_WriteAttitude; |
186 | I2C_RxBuffer = (uint8_t *)&I2C_WriteAttitude; |
187 | I2C_RxBufferSize = sizeof(I2C_WriteAttitude); |
187 | I2C_RxBufferSize = sizeof(I2C_WriteAttitude); |
188 | I2C_Heading.Heading = Heading; |
188 | I2C_Heading.Heading = Heading; |
189 | ExternData.Attitude[NICK] = I2C_WriteAttitude.Nick; |
- | |
190 | ExternData.Attitude[ROLL] = I2C_WriteAttitude.Roll; |
- | |
191 | break; |
189 | break; |
192 | default: // unknown command id |
190 | default: // unknown command id |
193 | I2C_RxBuffer = 0; |
191 | I2C_RxBuffer = 0; |
194 | I2C_RxBufferSize = 0; |
192 | I2C_RxBufferSize = 0; |
195 | I2C_TxBuffer = 0; |
193 | I2C_TxBuffer = 0; |