Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed Autonomous Networked Control Lab
MicroCART
Commits
ccc1460d
Commit
ccc1460d
authored
7 years ago
by
mkelly2
Browse files
Options
Downloads
Patches
Plain Diff
Started packet markdown documentation.
parent
b17c0771
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
documentation/groundStation/packets.md
+13
-0
13 additions, 0 deletions
documentation/groundStation/packets.md
with
13 additions
and
0 deletions
documentation/groundStation/packets.md
0 → 100644
+
13
−
0
View file @
ccc1460d
The MicroCART project uses custom packets to communicate with the quad. This may seem complex at first
but the structure of all packets is the same it is just the way the data is formatted that changes
between packets. The basic structure is shown below.
| Index | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|:-----------------:|:---------------:|:------------:|:----------:|:-----------:|:----:|:--------:|:-------------:|
| Message Parameter | Begin Character | Message Type | Message ID | Data Length | Data | Checksum | End Character |
| Bytes | 1 | 2 | 2 | 2 | var | 1 | 1 |
Both the begin and end characters are defined in (communication.h)[]. Message types are defined within an enum in
(commands.h)[]. Message ID is managed within the backend and is just a counter that is defined in (backend.c)[] of.
Data length varies with the command that is being sent, but the length of a command is constant. The data is sent
in a specific format set by commands. Lastly, checksum is computed within (backend.c)[].
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment