Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
Aaron Moate
emulab-devel
Commits
ca1fac1b
Commit
ca1fac1b
authored
19 years ago
by
David Johnson
Browse files
Options
Downloads
Patches
Plain Diff
Whoops, get rid of some debug stuff.
parent
1784c13d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
robots/primotion/garcia-pilot.cc
+0
-89
0 additions, 89 deletions
robots/primotion/garcia-pilot.cc
with
0 additions
and
89 deletions
robots/primotion/garcia-pilot.cc
+
0
−
89
View file @
ca1fac1b
...
...
@@ -531,101 +531,12 @@ int main(int argc, char *argv[])
/* see if we want to reset the brainstem modules */
if
(
brainstemResetRequested
)
{
unsigned
char
modules
[
2
]
=
{
4
,
2
};
// acpValue *v;
// acpValue sv(0.2f);
// v = garcia.getNamedValue("distance-left");
// if (v != NULL) {
// fprintf(stderr,
// "left odometry: %f\n",
// v->getFloatVal());
// }
// v = garcia.getNamedValue("acceleration");
// if (v != NULL) {
// fprintf(stderr,
// "acceleration: %f\n",
// v->getFloatVal());
// }
// v = garcia.getNamedValue("distance-units-string");
// if (v != NULL) {
// fprintf(stderr,
// "dist units: %s\n",
// v->getStringVal());
// }
// garcia.setNamedValue("damped-speed-left", &sv);
// v = garcia.getNamedValue("damped-speed-left");
// if (v != NULL) {
// fprintf(stderr,
// "damped-speed-left: %s\n",
// v->getFloatVal());
// }
/* can't do this in the usr2 handler cause it sleeps */
brainstem_reset
(
ioRef
,
modules
,
2
);
brainstemResetRequested
=
0
;
// v = garcia.getNamedValue("distance-left");
// if (v != NULL) {
// fprintf(stderr,
// "left odometry: %f\n",
// v->getFloatVal());
// }
// v = garcia.getNamedValue("heartbeat-status");
// if (v != NULL) {
// fprintf(stderr,
// "heartbeat-status: %d\n",
// v->getBoolVal());
// }
// {
// acpObject *b;
// acpValue av;
// if (!wait_for_brainstem_link(ioRef, garcia)) {
// fprintf(stderr,
// "error: could not connect to robot %d\n",
// garcia.getNamedValue("status")->getIntVal());
// exit(1);
// }
// garcia.flushQueuedBehaviors();
// av.set("radians");
// garcia.setNamedValue("angle-units-string", &av);
// av.set("meters");
// garcia.setNamedValue("distance-units-string", &av);
// /* turn off fall sensors */
// /* WHY?? -- Dan */
// av.set(0);
// garcia.setNamedValue("down-ranger-enable", &av);
// /* set the stall threshhold high */
// av.set(12.0f);
// garcia.setNamedValue("stall-threshhold", &av);
// av.set(0);
// garcia.setNamedValue("distance-left", &av);
// garcia.setNamedValue("distance-right", &av);
// av.set(aGARCIA_ERRFLAG_ABORT);
// garcia.setNamedValue("status", &av);
// b = garcia.createNamedBehavior("move", NULL);
// av.set(0.2f);
// b->setNamedValue("distance", &av);
// garcia.queueBehavior(b);
// }
}
/* Poll the file descriptors, don't block */
...
...
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