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
660b0ff8
Commit
660b0ff8
authored
8 years ago
by
burneykb
Browse files
Options
Downloads
Patches
Plain Diff
Added help message to setpid
parent
a2d6b954
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/cli/cli_monitor.c
+1
-0
1 addition, 0 deletions
groundStation/src/cli/cli_monitor.c
groundStation/src/cli/cli_setpid.c
+12
-7
12 additions, 7 deletions
groundStation/src/cli/cli_setpid.c
with
13 additions
and
7 deletions
groundStation/src/cli/cli_monitor.c
+
1
−
0
View file @
660b0ff8
...
...
@@ -51,6 +51,7 @@ int cli_monitor(struct backend_conn * conn, int argc, char **argv) {
}
if
(
needHelp
)
{
printf
(
"Monitor provides real time information about the quad. Including positional data as well as controller constants
\n\n
"
);
printf
(
"Usage Syntax :
\n\t
./Cli monitor [options...]
\n
"
);
printf
(
"Symlink Usage Syntax :
\n\t
./monitor [options...]
\n\n
"
);
printf
(
"Available options include the following
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
groundStation/src/cli/cli_setpid.c
+
12
−
7
View file @
660b0ff8
...
...
@@ -13,7 +13,7 @@ int cli_setpid(struct backend_conn * conn, int argc, char **argv) {
struct
frontend_pid_data
pid_data
;
static
int
mask
;
static
float
pval
=
0
,
ival
=
0
,
dval
=
0
;
static
needHelp
=
0
;
static
int
needHelp
=
0
;
static
struct
option
long_options
[]
=
{
/* These options don’t set a flag. We distinguish them by their indices. */
{
"roll"
,
no_argument
,
&
setRoll
,
1
},
...
...
@@ -59,12 +59,17 @@ int cli_setpid(struct backend_conn * conn, int argc, char **argv) {
}
if
(
needHelp
)
{
printf
(
"Usage Syntax :
\n\t
./Cli monitor [options...]
\n
"
);
printf
(
"Symlink Usage Syntax :
\n\t
./monitor [options...]
\n\n
"
);
printf
(
"Available options include the following
\n
"
);
printf
(
"
\t
[-f] : Run monitor continuously until you kill the program. (ctrl-C)
\n
"
);
printf
(
"
\t
[-c] 'count' : Sets the number of times the monitor will refresh
\n
"
);
printf
(
"
\t
[-r] 'rate' : Sets the 'rate' at which the monitor will refresh per second
\n
"
);
printf
(
"Setpid sets the p, i , or d constant values of any single controller
\n
"
);
printf
(
"Usage Syntax :
\n\t
./Cli setpid controller [options...]
\n
"
);
printf
(
"Symlink Usage Syntax :
\n\t
./setpid controller [options...]
\n\n
"
);
printf
(
"Available 'controllers' include the following
\n
"
);
printf
(
"
\t
[--pitch] : Pitch
\n\t
[--roll] : Roll
\n\t
[--yaw] : Yaw
\n
"
);
printf
(
"
\t
[--pitchv] : Pitch Velocity
\n\t
[--rollv] : Roll Velocity
\n\t
[--yawv] : Yaw Velocity
\n
"
);
printf
(
"
\t
[--height] : Z
\n\t
[--lat] : X
\n\t
[--long] : Y
\n\n
"
);
printf
(
"Available 'controller' options include the following
\n
"
);
printf
(
"
\t
[-p] 'val' : Sets the p constant of the 'controller' to 'val'
\n
"
);
printf
(
"
\t
[-i] 'val' : Sets the i constant of the 'controller' to 'val'
\n
"
);
printf
(
"
\t
[-d] 'val' : Sets the d constant of the 'controller' to 'val'
\n
"
);
return
0
;
}
...
...
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