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 14:18] arnaud |
projects:crazyflie:firmware:log [2012-10-07 15:44] arnaud [Crazyflie LOG subsystem] |
||
---|---|---|---|
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 38: | Line 40: | ||
Answer (Copter to PC): | Answer (Copter to PC): | ||
+ | +--------------+----+ | ||
+ | | GET_ITEM (0) | ID | If index out of range | ||
+--------------+----+------+------------+--------------+ | +--------------+----+------+------------+--------------+ | ||
- | | GET_ITEM (0) | ID | Type | | + | | GET_ITEM (0) | ID | Type | |
+--------------+----+------+------------+--------------+ | +--------------+----+------+------------+--------------+ | ||
Length | Length | ||
Line 53: | Line 57: | ||
| Group | Null-terminated string containing variable group | | | Group | Null-terminated string containing variable group | | ||
| Name | Null-terminated string containing the variable name | | | Name | Null-terminated string containing the variable name | | ||
+ | |||
+ | Type, group and name are not sent if the required ID is higher than TOC_LEN-1. | ||
=== Get Info === | === Get Info === |