Skip to content

Commit

Permalink
Merge pull request #4 from utexas-bwi/master
Browse files Browse the repository at this point in the history
reset all integrators before starting read.
  • Loading branch information
wjwwood committed Jan 17, 2013
2 parents d18fc66 + 1c4b7a5 commit c7eb198
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/segwayrmp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,14 @@ void SegwayRMP::connect(bool reset_integrators)

this->connected_ = true;

// Kick off the read thread
this->StartReadingContinuously_();

if (reset_integrators) {
// Reset all the integrators
this->resetAllIntegrators();
}

// Kick off the read thread
this->StartReadingContinuously_();

}

void SegwayRMP::shutdown()
Expand Down

0 comments on commit c7eb198

Please sign in to comment.