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
0414d9fc
Commit
0414d9fc
authored
3 years ago
by
Zach Eisele
Browse files
Options
Downloads
Patches
Plain Diff
changes needed for logfile command
parent
340c2461
No related branches found
Branches containing commit
No related tags found
3 merge requests
!76
lots of gui updates
,
!75
Lost of gui updates
,
!74
lots of gui updates among others
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
quad/src/commands/cb_default.h
+1
-1
1 addition, 1 deletion
quad/src/commands/cb_default.h
quad/src/commands/commands.c
+16
-2
16 additions, 2 deletions
quad/src/commands/commands.c
quad/src/commands/commands.h
+1
-1
1 addition, 1 deletion
quad/src/commands/commands.h
with
18 additions
and
4 deletions
quad/src/commands/cb_default.h
+
1
−
1
View file @
0414d9fc
...
...
@@ -5,5 +5,5 @@
/* cb_default used by portable commands.c */
int
cb_default
(
struct
modular_structs
*
structs
,
struct
metadata
*
meta
,
unsigned
char
*
data
,
unsigned
short
length
)
{
return
0
;
return
0
;
}
This diff is collapsed.
Click to expand it.
quad/src/commands/commands.c
+
16
−
2
View file @
0414d9fc
...
...
@@ -77,7 +77,9 @@ command_cb cb_respaddnode __attribute__((weak, alias("cb_default")));
command_cb
cb_overrideoutput
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_sendrtdata
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getlogfile
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_resplogfile
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_logblockcommand
__attribute__
((
weak
,
alias
(
"cb_default"
)));
/*
* Command structure.
...
...
@@ -90,7 +92,7 @@ command_cb cb_sendrtdata __attribute__((weak, alias("cb_default")));
* DO NOT change this struct without updating the
* "MessageTypeID" struct in commands.h as well
*/
struct
MessageType
MessageTypes
[
MAX_TYPE_ID
]
=
struct
MessageType
MessageTypes
[
MAX_TYPE_ID
+
3
]
=
{
// DEBUG
{
...
...
@@ -280,6 +282,18 @@ struct MessageType MessageTypes[MAX_TYPE_ID] =
stringType
,
// Function pointer
&
cb_sendrtdata
},
{
"getlogfile"
,
stringType
,
&
cb_getlogfile
},
{
"respgetlogfile"
,
stringType
,
&
cb_resplogfile
},
{
"logblockcommand"
,
intType
,
&
cb_logblockcommand
}
};
...
...
This diff is collapsed.
Click to expand it.
quad/src/commands/commands.h
+
1
−
1
View file @
0414d9fc
...
...
@@ -80,7 +80,7 @@ struct MessageType{
};
/* Defined in commands.c */
extern
struct
MessageType
MessageTypes
[
MAX_TYPE_ID
];
extern
struct
MessageType
MessageTypes
[
MAX_TYPE_ID
+
3
];
int
findCommand
(
char
*
cmdStr
);
#endif
/* __COMMANDS_H */
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