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
5fab267f
Unverified
Commit
5fab267f
authored
8 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
Implemented FindCommand
parent
19fedcae
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
groundStation/src/backend/commands.c
+11
-0
11 additions, 0 deletions
groundStation/src/backend/commands.c
groundStation/src/backend/commands.h
+1
-5
1 addition, 5 deletions
groundStation/src/backend/commands.h
with
12 additions
and
5 deletions
groundStation/src/backend/commands.c
+
11
−
0
View file @
5fab267f
...
...
@@ -183,3 +183,14 @@ struct MessageType MessageTypes[MAX_TYPE_ID] =
}
};
int
findCommand
(
char
*
str
)
{
for
(
int
i
=
0
;
i
<
MAX_TYPE_ID
;
i
++
)
{
if
(
strcmp
(
str
,
MessageTypes
[
i
].
cmdText
)
==
0
)
{
return
i
;
}
}
return
-
1
;
}
This diff is collapsed.
Click to expand it.
groundStation/src/backend/commands.h
+
1
−
5
View file @
5fab267f
...
...
@@ -89,10 +89,6 @@ struct MessageType{
/* Defined in commands.c */
extern
struct
MessageType
MessageTypes
[
MAX_TYPE_ID
];
/* Legacy functions - no idea what uses these. Please do not delete. */
float
getFloat
(
unsigned
char
*
str
,
int
pos
);
int
getInt
(
unsigned
char
*
str
,
int
pos
);
/* end legacy crap */
int
findCommand
(
char
*
cmdStr
);
#endif
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