Skip to content

Commit

Permalink
Merge pull request #3 from michael-heinrich/master
Browse files Browse the repository at this point in the history
Updates with minimal throttling factor
  • Loading branch information
michael-heinrich authored Jan 10, 2018
2 parents 718f6c0 + f998147 commit dbadd17
Show file tree
Hide file tree
Showing 63 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions .torcs.rc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TORCS_BASE = /home/jonas/torcs/torcs-1.3.7
MAKE_DEFAULT = /home/jonas/torcs/torcs-1.3.7/Make-default.mk
TORCS_BASE = /home/michaelheinrich/github/torcs-1.3.7
MAKE_DEFAULT = /home/michaelheinrich/github/torcs-1.3.7/Make-default.mk
2 changes: 1 addition & 1 deletion export/include/3D/Basic.h
2 changes: 1 addition & 1 deletion export/include/3D/Matrix.h
2 changes: 1 addition & 1 deletion export/include/3D/Point.h
2 changes: 1 addition & 1 deletion export/include/3D/Quaternion.h
2 changes: 1 addition & 1 deletion export/include/3D/Tuple3.h
2 changes: 1 addition & 1 deletion export/include/3D/Tuple4.h
2 changes: 1 addition & 1 deletion export/include/3D/Vector.h
2 changes: 1 addition & 1 deletion export/include/SOLID/solid.h
2 changes: 1 addition & 1 deletion export/include/car.h
2 changes: 1 addition & 1 deletion export/include/client.h
2 changes: 1 addition & 1 deletion export/include/controlconfig.h
2 changes: 1 addition & 1 deletion export/include/driverconfig.h
2 changes: 1 addition & 1 deletion export/include/exitmenu.h
2 changes: 1 addition & 1 deletion export/include/glfeatures.h
2 changes: 1 addition & 1 deletion export/include/graphconfig.h
2 changes: 1 addition & 1 deletion export/include/graphic.h
2 changes: 1 addition & 1 deletion export/include/joystickconfig.h
2 changes: 1 addition & 1 deletion export/include/learning/ANN.h
2 changes: 1 addition & 1 deletion export/include/learning/Distribution.h
2 changes: 1 addition & 1 deletion export/include/learning/List.h
2 changes: 1 addition & 1 deletion export/include/learning/MathFunctions.h
2 changes: 1 addition & 1 deletion export/include/learning/ann_policy.h
2 changes: 1 addition & 1 deletion export/include/learning/learn_debug.h
2 changes: 1 addition & 1 deletion export/include/learning/policy.h
2 changes: 1 addition & 1 deletion export/include/learning/real.h
2 changes: 1 addition & 1 deletion export/include/learning/string_utils.h
2 changes: 1 addition & 1 deletion export/include/mouseconfig.h
2 changes: 1 addition & 1 deletion export/include/musicplayer/OggSoundStream.h
2 changes: 1 addition & 1 deletion export/include/musicplayer/OpenALMusicPlayer.h
2 changes: 1 addition & 1 deletion export/include/musicplayer/SoundStream.h
2 changes: 1 addition & 1 deletion export/include/musicplayer/musicplayer.h
2 changes: 1 addition & 1 deletion export/include/openglconfig.h
2 changes: 1 addition & 1 deletion export/include/os.h
2 changes: 1 addition & 1 deletion export/include/osspec.h
2 changes: 1 addition & 1 deletion export/include/playerpref.h
2 changes: 1 addition & 1 deletion export/include/portability.h
2 changes: 1 addition & 1 deletion export/include/raceinit.h
2 changes: 1 addition & 1 deletion export/include/raceman.h
2 changes: 1 addition & 1 deletion export/include/racescreens.h
2 changes: 1 addition & 1 deletion export/include/replay.h
2 changes: 1 addition & 1 deletion export/include/robot.h
2 changes: 1 addition & 1 deletion export/include/robottools.h
2 changes: 1 addition & 1 deletion export/include/screen_properties.h
2 changes: 1 addition & 1 deletion export/include/simu.h
2 changes: 1 addition & 1 deletion export/include/simuconfig.h
2 changes: 1 addition & 1 deletion export/include/singleplayer.h
2 changes: 1 addition & 1 deletion export/include/soundconfig.h
2 changes: 1 addition & 1 deletion export/include/telemetry.h
2 changes: 1 addition & 1 deletion export/include/tgf.h
2 changes: 1 addition & 1 deletion export/include/tgfclient.h
2 changes: 1 addition & 1 deletion export/include/tmath/linalg_t.h
2 changes: 1 addition & 1 deletion export/include/tmath/straight2_t.h
2 changes: 1 addition & 1 deletion export/include/tmath/v2_t.h
2 changes: 1 addition & 1 deletion export/include/tmath/v3_t.h
2 changes: 1 addition & 1 deletion export/include/tmath/v4_t.h
2 changes: 1 addition & 1 deletion export/include/track.h
2 changes: 1 addition & 1 deletion export/include/xml.h
2 changes: 1 addition & 1 deletion export/include/xmlparse.h
2 changes: 1 addition & 1 deletion export/lib/libsolid.a
4 changes: 2 additions & 2 deletions src/drivers/hemic/hemic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ drive(int index, tCarElt* car, tSituation *s)
car->ctrl.gear = gear;


bool moves = speed > 1;
bool moves = speed > 1 || speedLim <= 5;

if (moves)
if (moves || throttling == 0)
{
bot->lastMoveStep = bot->currentStep;
bot->hasLaunched = true;
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/hemic/hemic.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#define THROTTLING_P_LIM 0.1

#define MAX_THROTTLING 1.0
#define MIN_THROTTLING 0.3
#define MIN_THROTTLING 0.0
//#define NOMINAL_REL_POSITION 0.5
#define NOMINAL_REL_POSITION 0.5

Expand Down
Binary file removed src/libs/txml/gennmtab/gennmtab
Binary file not shown.

0 comments on commit dbadd17

Please sign in to comment.