Skip to content

Commit

Permalink
Merged in mpg_cap (pull request osrf#29)
Browse files Browse the repository at this point in the history
Increase mpg limit

Approved-by: Steven Peters
Approved-by: sloretz
  • Loading branch information
iche033 committed Feb 3, 2017
2 parents 424d02f + 7714742 commit d16ec17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/PriusHybridPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,8 @@ void PriusHybridPlugin::Update()
}

// Accumulated mpg since last reset
// max value: 99.9
double mpg = std::min(99.9,
// max value: 999.9
double mpg = std::min(999.9,
dPtr->odom / std::max(dPtr->gasConsumption, 1e-6));

if ((curTime - this->dataPtr->lastMsgTime) > .5)
Expand Down

0 comments on commit d16ec17

Please sign in to comment.