Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
segway_rmp_400
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
labrobotica
drivers
segway_rmp_400
Commits
ceef0e29
Commit
ceef0e29
authored
11 years ago
by
Martí Morta Garriga
Browse files
Options
Downloads
Patches
Plain Diff
Neteja de codi comentat.. yellow card
parent
0cb195b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/segway_RMP400.cpp
+15
-20
15 additions, 20 deletions
src/segway_RMP400.cpp
with
15 additions
and
20 deletions
src/segway_RMP400.cpp
+
15
−
20
View file @
ceef0e29
...
...
@@ -60,28 +60,23 @@ void
CSegwayRMP400
::
start
()
{
for
(
unsigned
int
i
=
0
;
i
<
segways_
.
size
();
i
++
)
{
// for (unsigned int i = 0;i < NUM_SEGWAY_200 ;i++) {
try
{
// CSegwayRMP200 * segway = new CSegwayRMP200();
segways_
[
i
]
->
connect
(
serial_ftdi_segway_devices_
[
i
]);
// segways_.push_back(segway);
}
catch
(
CSegwayRMP200Exception
&
e
)
{
// Something failed while starting engines
// clean up previous (if any) started engine
for
(
unsigned
int
i
=
0
;
i
<
segways_
.
size
();
i
++
)
{
segways_
[
i
]
->
close
();
// delete segways_[i];
}
status_
=
rmp400_off
;
throw
;
try
{
segways_
[
i
]
->
connect
(
serial_ftdi_segway_devices_
[
i
]);
}
catch
(
CSegwayRMP200Exception
&
e
)
{
// Something failed while starting engines
// clean up previous (if any) started engine
for
(
unsigned
int
i
=
0
;
i
<
segways_
.
size
();
i
++
)
{
segways_
[
i
]
->
close
();
}
}
status_
=
rmp400_off
;
throw
;
}
}
status_
=
rmp400_connected
;
}
...
...
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