Skip to content

Commit

Permalink
Using the estimated Z velocity does not make sense for our current da…
Browse files Browse the repository at this point in the history
…tasets
  • Loading branch information
Guilherme Lawless committed Jan 6, 2017
1 parent 2d304e7 commit 8e61065
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pfuclt_particles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ void ParticleFilter::predictTarget()
targetAcceleration(seed_),
targetAcceleration(seed_) };

for (uint s = 0; s < STATES_PER_TARGET; ++s)
// Use X and Y velocity estimates
for (uint s = 0; s < STATES_PER_TARGET - 1; ++s)
{
pdata_t diff = state_.target.vel[s] * targetIterationTime_.diff +
0.5 * accel[s] * pow(targetIterationTime_.diff, 2);
Expand All @@ -160,6 +161,10 @@ void ParticleFilter::predictTarget()
s, diff, targetIterationTime_.diff, state_.target.vel[s]);
*/
}

// but for Z only the random acceleration model
particles_[O_TARGET + O_TZ][p] +=
0.5 * accel[O_TZ] * pow(targetIterationTime_.diff, 2);
}
}

Expand Down

0 comments on commit 8e61065

Please sign in to comment.