Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
d73c5d9d
Commit
d73c5d9d
authored
Jan 26, 2005
by
Timothy Stack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't send a wont-execute status, send the status value received
previously, since it has more information
parent
328c7c0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
robots/primotion/wheelManager.cc
robots/primotion/wheelManager.cc
+5
-5
No files found.
robots/primotion/wheelManager.cc
View file @
d73c5d9d
...
...
@@ -323,15 +323,13 @@ void wheelManager::motionStarted(void)
void
wheelManager
::
motionFinished
(
int
status
,
wmCallback
*
callback
)
{
this
->
wm_last_status
=
status
;
if
(
debug
)
{
fprintf
(
stderr
,
"debug: motion finished -- %d
\n
"
,
status
);
}
if
(
status
!=
aGARCIA_ERRFLAG_WONTEXECUTE
)
{
if
((
this
->
wm_last_
status
!=
aGARCIA_ERRFLAG_NORMAL
)
&&
(
this
->
wm_last_
status
!=
aGARCIA_ERRFLAG_ABORT
))
{
if
((
status
!=
aGARCIA_ERRFLAG_NORMAL
)
&&
(
status
!=
aGARCIA_ERRFLAG_ABORT
))
{
if
(
debug
)
{
fprintf
(
stderr
,
"debug: set error LED
\n
"
);
}
...
...
@@ -341,10 +339,12 @@ void wheelManager::motionFinished(int status, wmCallback *callback)
this
->
wm_dashboard
->
endMove
(
this
->
wm_garcia
);
this
->
wm_dashboard
->
remUserLEDClient
(
&
this
->
wm_moving_notice
);
this
->
wm_last_status
=
status
;
}
if
(
callback
!=
NULL
)
{
callback
->
call
(
status
);
callback
->
call
(
this
->
wm_last_
status
);
delete
callback
;
callback
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment