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
0fe232b7
Commit
0fe232b7
authored
8 years ago
by
burneykb
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into groundStation-dev-cli-setpoint
parents
418668fa
e83274c0
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
groundStation/src/backend/commands.c
+36
-0
36 additions, 0 deletions
groundStation/src/backend/commands.c
with
36 additions
and
0 deletions
groundStation/src/backend/commands.c
+
36
−
0
View file @
0fe232b7
...
...
@@ -48,7 +48,10 @@
/* Misc. callbacks */
command_cb
cb_debug
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_packetlog
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getpacketlogs
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_update
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_beginupdate
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_log
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_response
__attribute__
((
weak
,
alias
(
"cb_default"
)));
...
...
@@ -168,6 +171,28 @@ struct MessageType MessageTypes[MAX_TYPE] =
stringType
,
// Function pointer
&
cb_debug
},
// NONE subtype
{
// ID
0x01
,
// Command text
"packetlog"
,
// Type of the command data
stringType
,
// Function pointer
&
cb_packetlog
},
// NONE subtype
{
// ID
0x02
,
// Command text
"getpacketlogs"
,
// Type of the command data
stringType
,
// Function pointer
&
cb_getpacketlogs
}
}
},
...
...
@@ -1208,6 +1233,17 @@ struct MessageType MessageTypes[MAX_TYPE] =
stringType
,
// Function pointer
&
cb_update
},
// BEGIN update
{
// ID
0x01
,
// Command text
"beginupdate"
,
// Type of the command data
stringType
,
// Function pointer
&
cb_beginupdate
}
}
},
...
...
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