From 3fb87526a8429e64c994582e1526d72b5faf8d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 13 Jul 2008 21:52:52 +0200 Subject: [PATCH] Disable sim update --- src/control_parser.c | 4 ++-- src/control_parser.rl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/control_parser.c b/src/control_parser.c index 2be9621..7db5d9c 100644 --- a/src/control_parser.c +++ b/src/control_parser.c @@ -397,8 +397,8 @@ _match: gettimeofday(&t->started, NULL); /* fprintf(stderr, "New run\n"); */ } else { - dgl(t, &t->sim.tm.vehicle, &t->sim.tm.vehicle, ctx->tm->ts - t->sim.tm.ts); - ctx->tm->vehicle.w = t->sim.tm.vehicle.w; +/* dgl(t, &t->sim.tm.vehicle, &t->sim.tm.vehicle, ctx->tm->ts - t->sim.tm.ts); + ctx->tm->vehicle.w = t->sim.tm.vehicle.w;*/ /* fprintf(stderr, "time difference [ms]: %i\n", getcurts(t) - ctx->tm->ts); */ fprintf(stderr, "Miss predict: dx=%f, dy=%f, ddir=%f, steps=%u\n", t->sim.tm.vehicle.x - t->vehicle.x, diff --git a/src/control_parser.rl b/src/control_parser.rl index 5f0138f..3db4042 100644 --- a/src/control_parser.rl +++ b/src/control_parser.rl @@ -46,8 +46,8 @@ static timestamp extract_ts(context *ctx, char *fpc) { gettimeofday(&t->started, NULL); /* fprintf(stderr, "New run\n"); */ } else { - dgl(t, &t->sim.tm.vehicle, &t->sim.tm.vehicle, ctx->tm->ts - t->sim.tm.ts); - ctx->tm->vehicle.w = t->sim.tm.vehicle.w; +/* dgl(t, &t->sim.tm.vehicle, &t->sim.tm.vehicle, ctx->tm->ts - t->sim.tm.ts); + ctx->tm->vehicle.w = t->sim.tm.vehicle.w;*/ /* fprintf(stderr, "time difference [ms]: %i\n", getcurts(t) - ctx->tm->ts); */ fprintf(stderr, "Miss predict: dx=%f, dy=%f, ddir=%f, steps=%u\n", t->sim.tm.vehicle.x - t->vehicle.x,