Skip to content
Snippets Groups Projects
Commit de936044 authored by burneykb's avatar burneykb
Browse files

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
...@@ -239,6 +239,24 @@ struct MessageType MessageTypes[MAX_TYPE_ID] = ...@@ -239,6 +239,24 @@ struct MessageType MessageTypes[MAX_TYPE_ID] =
// Function pointer // Function pointer
&cb_respnodes &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 // LOG_END
{ {
// Command text // Command text
......
...@@ -42,19 +42,22 @@ enum MessageTypeID{ ...@@ -42,19 +42,22 @@ enum MessageTypeID{
BEGINUPDATE_ID, // 04 BEGINUPDATE_ID, // 04
LOG_ID, // 05 LOG_ID, // 05
RESPONSE_ID, // 06 RESPONSE_ID, // 06
SETPARAM_ID, // 07 - Setting controller parameters. Example: PID constants SETPARAM_ID, // 07 - Setting node parameters.
GETPARAM_ID, // 08 - Getting controller parameters. Example: PID constants GETPARAM_ID, // 08 - Getting node parameters.
RESPPARAM_ID, // 09 - Responding with controller parameters. Example: PID constants RESPPARAM_ID, // 09 - Responding with node parameters.
SETSOURCE_ID, // 10 - Setting controller source Block & id SETSOURCE_ID, // 10 - Setting node input source block_id & output_id
GETSOURCE_ID, // 11 - Getting controller source Block & id GETSOURCE_ID, // 11 - Getting node input source block_id & output_id
RESPSOURCE_ID, // 12 - Responding with controller source Block & id RESPSOURCE_ID, // 12 - Responding with node input source block_id & output_id
GETOUTPUT_ID, // 13 - Getting controller block output GETOUTPUT_ID, // 13 - Getting node output
RESPOUTPUT_ID, // 14 - Responding with controller block output RESPOUTPUT_ID, // 14 - Responding with node output
GETNODES_ID, // 15 - Getting nodes from current comp_graph GETNODES_ID, // 15 - Getting node IDs from current comp_graph
RESPNODES_ID, // 16 - Responding with nodes from current comp_graph RESPNODES_ID, // 16 - Responding with node IDs from current comp_graph
LOG_END_ID, // 17 - Responding with controller parameters. Example: PID constants ADDNODE_ID, // 17 - Add a node of specified type_id
MAX_TYPE_ID // 18 - Just used to keep track of the size. Must remain at the end 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 * Message type struct used to keep track of the callback function
* pointers located in commands.c * pointers located in commands.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment