Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
9c254ace
Commit
9c254ace
authored
Feb 18, 2005
by
Timothy Stack
Browse files
Don't move backwards unless the distance is < 0.25 meters, we want to
avoid them getting bound up...
parent
ae3ce1a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
robots/primotion/wheelManager.cc
View file @
9c254ace
...
...
@@ -250,7 +250,7 @@ void wheelManager::setDestination(float x, float y, wmCallback *callback)
* Check if we can make the move by backing up instead of turning all the
* way around and moving forward.
*/
if
(
fabsf
(
angle
)
>
M_PI_2
)
{
if
((
distance
<=
0.25
)
&&
(
fabsf
(
angle
)
>
M_PI_2
)
)
{
if
(
angle
>=
0.0
)
angle
-=
M_PI
;
else
...
...
Write
Preview
Supports
Markdown
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