This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
projects:crazyflie:firmware:log [2012-10-07 15:44] arnaud [Crazyflie LOG subsystem] |
projects:crazyflie:firmware:log [2012-11-11 18:15] arnaud [Communication protocol] |
||
---|---|---|---|
Line 14: | Line 14: | ||
^ **Port** | ^ **Port** | ||
- | | 5 | 0 | + | | 1 | 0 | Table of content access | |
- | | 5 | 1 | + | | 1 | 1 | Log control |
- | | 5 | 2 | + | | 1 | 2 | Log data | |
==== Table of content access ==== | ==== Table of content access ==== | ||
Line 87: | Line 87: | ||
| LOG_MAX_PACKET | Maximum number of log packets that can be programmed in the copter | | | LOG_MAX_PACKET | Maximum number of log packets that can be programmed in the copter | | ||
| LOG_MAX_OPS | | LOG_MAX_OPS | ||
+ | |||
+ | ==== Log control ==== | ||
+ | |||
+ | The log control channel permits to setup, activate, deactivate and remove log packets. Like the TOC access channel the first data byte represents a command. | ||
+ | |||
+ | ^ Control command byte ^ Command | ||
+ | | 0 | CREATE_BLOCK | ||
+ | | 1 | APPEND_BLOCK | ||
+ | | 2 | DELETE_BLOCK | ||
+ | | 3 | START_BLOCK | ||
+ | | 4 | STOP_BLOCK | ||