Merge pull request #119 from sureshsundriyal/master

[log_accel] Minor refactoring.
pull/126/head
Tim Stack 10 years ago
commit a5a6da954f

@ -107,9 +107,8 @@ public:
range = std::max(range, MIN_RANGE);
for (int lpc = 0; lpc < (this->la_velocity_size - 1); lpc++) {
double accel = (
(this->la_velocity[lpc] - this->la_min_velocity) / range -
(this->la_velocity[lpc + 1] - this->la_min_velocity) / range);
double accel =
(this->la_velocity[lpc] - this->la_velocity[lpc + 1]) / range;
total_accel += accel;
}

Loading…
Cancel
Save