tex v2 - without experiments

This commit is contained in:
toni
2017-05-10 23:33:01 +02:00
parent 5b2e1b0c65
commit 210fae56b7
11 changed files with 4856 additions and 10840 deletions

View File

@@ -153,6 +153,10 @@ struct PFTransSimple : public K::ParticleFilterTransition<MyState, MyControl>{
for (int i = 0; i < Settings::numParticles; ++i) {
K::Particle<MyState>& p = particles[i];
// update the baromter
float deltaZ_cm = p.state.positionOld.inMeter().z - p.state.position.inMeter().z;
p.state.relativePressure += deltaZ_cm * 0.105f;
double diffHeight = p.state.position.inMeter().z + height_m.draw();
double newHeight_cm = p.state.position.z_cm;
if(diffHeight > 9.1){