From fd659f9752e4a5d3645f29b0eb7e00d1c1164df8 Mon Sep 17 00:00:00 2001 From: andrewsumner Date: Wed, 12 Nov 2008 01:14:03 +0000 Subject: [PATCH] Added autoclutch, ASR and ABS fixes/enhancements - please test! git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@213 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4b69c5ae8f56a9b642e516b4ef04a32cee511167 Former-commit-id: 93dd9e7564f27ca337940bebe649254c8b10fe4a --- src/drivers/human/human.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/human/human.cpp b/src/drivers/human/human.cpp index 9d54b1b1..c7537167 100644 --- a/src/drivers/human/human.cpp +++ b/src/drivers/human/human.cpp @@ -90,7 +90,7 @@ static tKeyInfo skeyInfo[256]; static int currentKey[256]; static int currentSKey[256]; -static tdble lastKeyUpdate = -10.0; +static double lastKeyUpdate = -10.0; static int firstTime = 0; @@ -226,7 +226,7 @@ human(tModInfo *modInfo) } strncpy(names[i], driver, MAXNAMELEN); modInfo->name = names[i]; /* name of the module (short) */ - modInfo->desc = strdup("Joystick controlable driver"); /* description of the module (can be long) */ + modInfo->desc = "Joystick controllable driver"; /* description of the module (can be long) */ modInfo->fctInit = InitFuncPt; /* init function */ modInfo->gfId = ROB_IDENT; /* supported framework version */ modInfo->index = i+1; @@ -842,7 +842,7 @@ static void common_drive(int index, tCarElt* car, tSituation *s) car->_brakeCmd = MIN(car->_brakeCmd, MAX(0.35, 1.0 - decel)); } - const tdble abs_slip = 2.5; + const tdble abs_slip = 3.5; const tdble abs_range = 5.0; slip = 0;