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
de936044
Commit
de936044
authored
8 years ago
by
burneykb
Browse files
Options
Downloads
Patches
Plain Diff
added new commands to be implemented to the common files
parent
4a42091d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/commands.c
+18
-0
18 additions, 0 deletions
common/commands.c
common/commands.h
+15
-12
15 additions, 12 deletions
common/commands.h
with
33 additions
and
12 deletions
common/commands.c
+
18
−
0
View file @
de936044
...
...
@@ -239,6 +239,24 @@ struct MessageType MessageTypes[MAX_TYPE_ID] =
// Function pointer
&
cb_respnodes
},
// ADDNODE
{
// Command text
"addnode"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_addnode
},
// RESPADDNODE
{
// Command text
"respaddnode"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_respaddnode
},
// LOG_END
{
// Command text
...
...
This diff is collapsed.
Click to expand it.
common/commands.h
+
15
−
12
View file @
de936044
...
...
@@ -42,19 +42,22 @@ enum MessageTypeID{
BEGINUPDATE_ID
,
// 04
LOG_ID
,
// 05
RESPONSE_ID
,
// 06
SETPARAM_ID
,
// 07 - Setting controller parameters. Example: PID constants
GETPARAM_ID
,
// 08 - Getting controller parameters. Example: PID constants
RESPPARAM_ID
,
// 09 - Responding with controller parameters. Example: PID constants
SETSOURCE_ID
,
// 10 - Setting controller source Block & id
GETSOURCE_ID
,
// 11 - Getting controller source Block & id
RESPSOURCE_ID
,
// 12 - Responding with controller source Block & id
GETOUTPUT_ID
,
// 13 - Getting controller block output
RESPOUTPUT_ID
,
// 14 - Responding with controller block output
GETNODES_ID
,
// 15 - Getting nodes from current comp_graph
RESPNODES_ID
,
// 16 - Responding with nodes from current comp_graph
LOG_END_ID
,
// 17 - Responding with controller parameters. Example: PID constants
MAX_TYPE_ID
// 18 - Just used to keep track of the size. Must remain at the end
SETPARAM_ID
,
// 07 - Setting node parameters.
GETPARAM_ID
,
// 08 - Getting node parameters.
RESPPARAM_ID
,
// 09 - Responding with node parameters.
SETSOURCE_ID
,
// 10 - Setting node input source block_id & output_id
GETSOURCE_ID
,
// 11 - Getting node input source block_id & output_id
RESPSOURCE_ID
,
// 12 - Responding with node input source block_id & output_id
GETOUTPUT_ID
,
// 13 - Getting node output
RESPOUTPUT_ID
,
// 14 - Responding with node output
GETNODES_ID
,
// 15 - Getting node IDs from current comp_graph
RESPNODES_ID
,
// 16 - Responding with node IDs from current comp_graph
ADDNODE_ID
,
// 17 - Add a node of specified type_id
RESPADDNODE_ID
,
// 18 - Responding with the block_id of the newly added node
LOG_END_ID
,
// 19 - Responding with controller parameters. Example: PID constants
MAX_TYPE_ID
// 20 - Just used to keep track of the size. Must remain at the end
};
/*
* Message type struct used to keep track of the callback function
* pointers located in commands.c
...
...
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