User Tools

Site Tools


projects:crazyflie:crtp: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:crtp:log [2013-03-20 09:32]
arnaud
projects:crazyflie:crtp:log [2013-03-20 10:22]
macke
Line 2: Line 2:
 For more information on how to use this and how this is implemented have a look [[projects:crazyflie:firmware:log|here]]. For more information on how to use this and how this is implemented have a look [[projects:crazyflie:firmware:log|here]].
  
-===== State machine ===== +===== State machines ===== 
 +==== Downloading the Table Of Contents ====
 <ditaa> <ditaa>
-    /----------------\ +    /----------------\      /----------------\     /-------------\   No    /------\ 
- -->| Fetch TOC item | +--> | Fetch TOC info |----->| Fetch TOC item |---->| More items? |-------->| Done 
-    \----------------/+    \----------------/      \----------------/     \-------------/         \------/ 
 +                                                      | 
 +                                                      | 
 +                                   \--------------------/ 
 +                                           Yes
 </ditaa> </ditaa>
- 
- 
 ===== Communication protocol ===== ===== Communication protocol =====
  
Line 16: Line 18:
  
 ^ **Port**  ^ **Channel** ^ **Function**      ^ ^ **Port**  ^ **Channel** ^ **Function**      ^
-|            0        | Table of content access | +|            0        | Table of content access: Used for reading out the TOC 
-|            1        | Log control | +|            1        | Log control: Used for adding/removing/starting/pausing log blocks 
-|            2        | Log data |+|            2        | Log data: Used to send log data from the Crazyflie to the client |
  
 ==== Table of content access ==== ==== Table of content access ====
- +This channel is used to download the Table Of Contents that contains all the variables that are available for logging and what types they are.
-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. 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.
Line 127: Line 128:
 |  1   | ID             | Timestamp in ms from the copter startup as a little-endian 3 bytes integer | |  1   | ID             | Timestamp in ms from the copter startup as a little-endian 3 bytes integer |
 |  4..  | Log variable values | Packed log values in little endian format |  |  4..  | Log variable values | Packed log values in little endian format | 
- 
projects/crazyflie/crtp/log.txt · Last modified: 2015-07-15 16:31 (external edit)