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: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: | For more information on how to use this and how this is implemented have a look [[projects: | ||
- | ===== State machine | + | ===== State machines |
+ | ==== Downloading the Table Of Contents ==== | ||
< | < | ||
- | / | + | /----------------\ |
- | | + | --> | Fetch TOC info |----->| Fetch TOC item |---->| More items? |--------> |
- | \----------------/ | + | \----------------/ |
+ | | ||
+ | | ||
+ | | ||
+ | Yes | ||
</ | </ | ||
- | |||
- | |||
===== Communication protocol ===== | ===== Communication protocol ===== | ||
Line 16: | Line 18: | ||
^ **Port** | ^ **Port** | ||
- | | | + | | |
- | | | + | | |
- | | | + | | |
==== Table of content access ==== | ==== Table of content access ==== | ||
- | + | This channel is used to download the Table Of Contents that contains all the variables | |
- | This channel is used to access | + | |
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 | | ||
- |