User Tools

Site Tools


projects:crazyflie:firmware:log

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:crazyflie:firmware:log [2012-10-07 13:56]
arnaud
projects:crazyflie:firmware:log [2013-03-20 10:14]
arnaud
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 =====+{{:projects:crazyflie:firmware:logmagic.png?800|}}
  
-The log port is separated in 3 channels: 
- 
-^ **Port**  ^ **Channel** ^ **Function**      ^ 
-|            0        | [[comm_protocol#table_of_content_access|Table of content access]] | 
-|            1        | [[comm_protocol#log_settings_access| Log settings access]] | 
-|            2        | [[comm_protocol#log_data_access|Log data access]] | 
- 
-==== Table of content access ==== 
- 
-This channel is used to access the loggable variables table of content. 
- 
-The first byte of each messages correspond a command. All communication on this port are initated by the client and all answer from the copter will contain the same command byte. 
- 
-^ TOC command byte ^ Meaning             ^ 
-|                0 | Get TOC Element     | 
-|                1 | Get TOC information | 
- 
-=== Get TOC element === 
- 
-<code> 
-Request (PC to Copter): 
-        +-------------+------------+ 
-        | Command (0) | Element ID | 
-        +-------------+------------+ 
-Length                    1 
- 
-Answer (Copter to PC): 
-        +-------------+------------+------+------------+--------------+ 
-        | Command (0) | Element ID | Type |   Group    |     Name     | 
-        +-------------+------------+------+------------+--------------+ 
-Length        1                        < Null terminated strings > 
-</code> 
-^ Request fields ^ Content                             ^ 
-| Command        | Must be 0 for GET_ELEMENT operation | 
-| Element ID     | ID of the element to be retrieved. The variables are numbered from 0 to LOG_LEN (see GET_INFO command) | 
- 
-^ Answer fields  ^ Content                             ^ 
-| Command        | 0 for GET_ELEMENT operation | 
-| Element ID     | ID of the element returned  | 
-| Type           | Variable type of the element. See variable types list | 
-| Group          | Null-terminated string containing variable group | 
-| Name           | Null-terminated string containing the variable name | 
  
projects/crazyflie/firmware/log.txt · Last modified: 2021-06-24 16:49 by kimberly