Skip to content

Commit

Permalink
added debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 1, 2018
1 parent 3015be7 commit e3d532b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#include "MSLeaderInfo.h"

//#define DEBUG_PLAN_MOVE
//#define DEBUG_PLAN_MOVE_LEADERINFO
//#define DEBUG_CHECKREWINDLINKLANES
//#define DEBUG_EXEC_MOVE
//#define DEBUG_FURTHER
Expand Down Expand Up @@ -2165,7 +2166,13 @@ void
MSVehicle::checkLinkLeader(const MSLink* link, const MSLane* lane, double seen,
DriveProcessItem* const lastLink, double& v, double& vLinkPass, double& vLinkWait, bool& setRequest,
bool isShadowLink) const {
#ifdef DEBUG_PLAN_MOVE_LEADERINFO
if (DEBUG_COND) gDebugFlag1 = true; // See MSLink::getLeaderInfo
#endif
const MSLink::LinkLeaders linkLeaders = link->getLeaderInfo(this, seen, 0, isShadowLink);
#ifdef DEBUG_PLAN_MOVE_LEADERINFO
if (DEBUG_COND) gDebugFlag1 = false; // See MSLink::getLeaderInfo
#endif
for (MSLink::LinkLeaders::const_iterator it = linkLeaders.begin(); it != linkLeaders.end(); ++it) {
// the vehicle to enter the junction first has priority
const MSVehicle* leader = (*it).vehAndGap.first;
Expand Down

0 comments on commit e3d532b

Please sign in to comment.