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:30] arnaud [Table of content access] |
projects:crazyflie:firmware:log [2012-10-08 07:03] arnaud [Log control] |
||
---|---|---|---|
Line 5: | Line 5: | ||
This mechanism is used both for regular log operation (ie. user requested log to inspect and debug flight data) but also to update indication in the GUI application. | This mechanism is used both for regular log operation (ie. user requested log to inspect and debug flight data) but also to update indication in the GUI application. | ||
- | Each variable to log is contained in a | + | Each variable to log is contained in a group group and has a name. The system is designed to make it easy to add a log variable in the Firmware and have it available in the ground station GUI: |
+ | |||
+ | {{: | ||
===== Communication protocol ===== | ===== Communication protocol ===== | ||
Line 12: | Line 14: | ||
^ **Port** | ^ **Port** | ||
- | | | + | | |
- | | | + | | |
- | | | + | | |
==== Table of content access ==== | ==== Table of content access ==== | ||
Line 85: | 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 | DEL_BLOCK | ||
+ | | 3 | START_BLOCK | ||
+ | | 4 | STOP_BLOCK | ||